aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/controllers/api/users/index.ts6
-rw-r--r--server/lib/job-queue/handlers/video-file.ts2
2 files changed, 3 insertions, 5 deletions
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')
47 47
48const loginRateLimiter = new RateLimit({ 48const loginRateLimiter = new RateLimit({
49 windowMs: RATES_LIMIT.LOGIN.WINDOW_MS, 49 windowMs: RATES_LIMIT.LOGIN.WINDOW_MS,
50 max: RATES_LIMIT.LOGIN.MAX, 50 max: RATES_LIMIT.LOGIN.MAX
51 delayMs: 0
52}) 51})
53 52
54const askSendEmailLimiter = new RateLimit({ 53const askSendEmailLimiter = new RateLimit({
55 windowMs: RATES_LIMIT.ASK_SEND_EMAIL.WINDOW_MS, 54 windowMs: RATES_LIMIT.ASK_SEND_EMAIL.WINDOW_MS,
56 max: RATES_LIMIT.ASK_SEND_EMAIL.MAX, 55 max: RATES_LIMIT.ASK_SEND_EMAIL.MAX
57 delayMs: 0
58}) 56})
59 57
60const usersRouter = express.Router() 58const 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
140 let videoPublished = false 140 let videoPublished = false
141 141
142 if (resolutionsEnabled.length !== 0) { 142 if (resolutionsEnabled.length !== 0) {
143 const tasks: Bluebird<Bull.Job<any>>[] = [] 143 const tasks: (Bluebird<Bull.Job<any>> | Promise<Bull.Job<any>>)[] = []
144 144
145 for (const resolution of resolutionsEnabled) { 145 for (const resolution of resolutionsEnabled) {
146 const dataInput = { 146 const dataInput = {