From 20655b6eeb8337842f50ec90ed901b40e511de43 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Mon, 23 Oct 2017 15:59:32 +0100 Subject: [PATCH 1/2] remove unused requires of async --- services/document-updater/app/coffee/HistoryManager.coffee | 1 - services/document-updater/app/coffee/HistoryRedisManager.coffee | 1 - services/document-updater/app/coffee/RedisManager.coffee | 1 - services/document-updater/app/coffee/ShareJsUpdateManager.coffee | 1 - 4 files changed, 4 deletions(-) diff --git a/services/document-updater/app/coffee/HistoryManager.coffee b/services/document-updater/app/coffee/HistoryManager.coffee index 9f78b5af4b..c3675f4018 100644 --- a/services/document-updater/app/coffee/HistoryManager.coffee +++ b/services/document-updater/app/coffee/HistoryManager.coffee @@ -1,7 +1,6 @@ settings = require "settings-sharelatex" request = require "request" logger = require "logger-sharelatex" -async = require "async" HistoryRedisManager = require "./HistoryRedisManager" module.exports = HistoryManager = diff --git a/services/document-updater/app/coffee/HistoryRedisManager.coffee b/services/document-updater/app/coffee/HistoryRedisManager.coffee index 0ac8723359..d9a99a09aa 100644 --- a/services/document-updater/app/coffee/HistoryRedisManager.coffee +++ b/services/document-updater/app/coffee/HistoryRedisManager.coffee @@ -1,7 +1,6 @@ Settings = require('settings-sharelatex') rclient = require("redis-sharelatex").createClient(Settings.redis.history) Keys = Settings.redis.history.key_schema -async = require "async" logger = require('logger-sharelatex') module.exports = HistoryRedisManager = diff --git a/services/document-updater/app/coffee/RedisManager.coffee b/services/document-updater/app/coffee/RedisManager.coffee index b873f9bd6a..ccb82a1ab6 100644 --- a/services/document-updater/app/coffee/RedisManager.coffee +++ b/services/document-updater/app/coffee/RedisManager.coffee @@ -1,5 +1,4 @@ Settings = require('settings-sharelatex') -async = require('async') rclient = require("redis-sharelatex").createClient(Settings.redis.documentupdater) _ = require('underscore') logger = require('logger-sharelatex') diff --git a/services/document-updater/app/coffee/ShareJsUpdateManager.coffee b/services/document-updater/app/coffee/ShareJsUpdateManager.coffee index 3ec90e4f62..a5cc6070cb 100644 --- a/services/document-updater/app/coffee/ShareJsUpdateManager.coffee +++ b/services/document-updater/app/coffee/ShareJsUpdateManager.coffee @@ -1,6 +1,5 @@ ShareJsModel = require "./sharejs/server/model" ShareJsDB = require "./ShareJsDB" -async = require "async" logger = require "logger-sharelatex" Settings = require('settings-sharelatex') Keys = require "./UpdateKeys" From 14f3d22071a6875ae1aad1a917c724dacf2c21f5 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Mon, 23 Oct 2017 16:02:24 +0100 Subject: [PATCH 2/2] upgrade to latest async ^2.5.0 --- services/document-updater/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/document-updater/package.json b/services/document-updater/package.json index 3436da467d..3854e78158 100644 --- a/services/document-updater/package.json +++ b/services/document-updater/package.json @@ -7,7 +7,7 @@ "url": "https://github.com/sharelatex/document-updater-sharelatex.git" }, "dependencies": { - "async": "2.0.0-rc.5", + "async": "^2.5.0", "coffee-script": "1.4.0", "express": "3.3.4", "ioredis": "^3.1.4",