From 374c1db98cf22527f5b362c70d3c50e3be4c8885 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 21 Feb 2019 14:22:39 +0100 Subject: Upgrade server dependencies --- server/controllers/api/users/index.ts | 6 ++---- server/lib/job-queue/handlers/video-file.ts | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'server') diff --git a/server/controllers/api/users/index.ts b/server/controllers/api/users/index.ts index e3533a7f6..407f32ac0 100644 --- a/server/controllers/api/users/index.ts +++ b/server/controllers/api/users/index.ts @@ -47,14 +47,12 @@ const auditLogger = auditLoggerFactory('users') const loginRateLimiter = new RateLimit({ windowMs: RATES_LIMIT.LOGIN.WINDOW_MS, - max: RATES_LIMIT.LOGIN.MAX, - delayMs: 0 + max: RATES_LIMIT.LOGIN.MAX }) const askSendEmailLimiter = new RateLimit({ windowMs: RATES_LIMIT.ASK_SEND_EMAIL.WINDOW_MS, - max: RATES_LIMIT.ASK_SEND_EMAIL.MAX, - delayMs: 0 + max: RATES_LIMIT.ASK_SEND_EMAIL.MAX }) const usersRouter = express.Router() diff --git a/server/lib/job-queue/handlers/video-file.ts b/server/lib/job-queue/handlers/video-file.ts index 04983155c..3a867b77f 100644 --- a/server/lib/job-queue/handlers/video-file.ts +++ b/server/lib/job-queue/handlers/video-file.ts @@ -140,7 +140,7 @@ async function onVideoFileOptimizerSuccess (videoArg: VideoModel, payload: Video let videoPublished = false if (resolutionsEnabled.length !== 0) { - const tasks: Bluebird>[] = [] + const tasks: (Bluebird> | Promise>)[] = [] for (const resolution of resolutionsEnabled) { const dataInput = { -- cgit v1.2.3