Make tslint happy
This commit is contained in:
parent
8221fef0f9
commit
980246ea8f
6 changed files with 33 additions and 34 deletions
|
@ -77,7 +77,7 @@ const CONFIG = {
|
||||||
},
|
},
|
||||||
SIGNUP: {
|
SIGNUP: {
|
||||||
ENABLED: config.get<boolean>('signup.enabled'),
|
ENABLED: config.get<boolean>('signup.enabled'),
|
||||||
LIMIT: config.get<number>('signup.limit'),
|
LIMIT: config.get<number>('signup.limit')
|
||||||
},
|
},
|
||||||
USER: {
|
USER: {
|
||||||
VIDEO_QUOTA: config.get<number>('user.video_quota')
|
VIDEO_QUOTA: config.get<number>('user.video_quota')
|
||||||
|
|
|
@ -108,7 +108,7 @@ class RequestVideoQaduScheduler extends AbstractRequestScheduler<RequestsVideoQa
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
// Now we deduped similar quick and dirty updates, we can build our requests datas
|
// Now we deduped similar quick and dirty updates, we can build our requests data
|
||||||
Object.keys(requestsToMakeGrouped).forEach(hashKey => {
|
Object.keys(requestsToMakeGrouped).forEach(hashKey => {
|
||||||
Object.keys(requestsToMakeGrouped[hashKey].videos).forEach(videoUUID => {
|
Object.keys(requestsToMakeGrouped[hashKey].videos).forEach(videoUUID => {
|
||||||
const videoData = requestsToMakeGrouped[hashKey].videos[videoUUID]
|
const videoData = requestsToMakeGrouped[hashKey].videos[videoUUID]
|
||||||
|
@ -118,7 +118,7 @@ class RequestVideoQaduScheduler extends AbstractRequestScheduler<RequestsVideoQa
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
// We don't need it anymore, it was just to build our datas array
|
// We don't need it anymore, it was just to build our data array
|
||||||
delete requestsToMakeGrouped[hashKey].videos
|
delete requestsToMakeGrouped[hashKey].videos
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ function videosAddValidator (req: express.Request, res: express.Response, next:
|
||||||
})
|
})
|
||||||
.then(duration => {
|
.then(duration => {
|
||||||
// Previous test failed, abort
|
// Previous test failed, abort
|
||||||
if (duration === undefined) return
|
if (duration === undefined) return undefined
|
||||||
|
|
||||||
if (!isVideoDurationValid('' + duration)) {
|
if (!isVideoDurationValid('' + duration)) {
|
||||||
return res.status(400).send('Duration of the video file is too big (max: ' + CONSTRAINTS_FIELDS.VIDEOS.DURATION.max + 's).')
|
return res.status(400).send('Duration of the video file is too big (max: ' + CONSTRAINTS_FIELDS.VIDEOS.DURATION.max + 's).')
|
||||||
|
|
|
@ -9,7 +9,6 @@ import * as Sequelize from 'sequelize'
|
||||||
import * as Promise from 'bluebird'
|
import * as Promise from 'bluebird'
|
||||||
|
|
||||||
import { TagInstance } from './tag-interface'
|
import { TagInstance } from './tag-interface'
|
||||||
import { UserInstance } from '../user/user-interface'
|
|
||||||
import {
|
import {
|
||||||
logger,
|
logger,
|
||||||
isVideoNameValid,
|
isVideoNameValid,
|
||||||
|
|
Loading…
Reference in a new issue