diff options
author | Chocobozzz <me@florianbigard.com> | 2019-10-21 14:50:55 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-10-21 15:03:28 +0200 |
commit | d5d9b6d7bfb7e9426b6462f7fdf285df39eea820 (patch) | |
tree | aa21a16be3df94b5c6fd264d1090ed9ac7c94a79 /server/helpers/middlewares/video-abuses.ts | |
parent | f6e0de3f48993b2c0ef9bd2c24d2d7443acc6ace (diff) | |
download | PeerTube-d5d9b6d7bfb7e9426b6462f7fdf285df39eea820.tar.gz PeerTube-d5d9b6d7bfb7e9426b6462f7fdf285df39eea820.tar.zst PeerTube-d5d9b6d7bfb7e9426b6462f7fdf285df39eea820.zip |
Update server dependencies
Diffstat (limited to 'server/helpers/middlewares/video-abuses.ts')
-rw-r--r-- | server/helpers/middlewares/video-abuses.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/helpers/middlewares/video-abuses.ts b/server/helpers/middlewares/video-abuses.ts index 1b573ca37..8a1d3d618 100644 --- a/server/helpers/middlewares/video-abuses.ts +++ b/server/helpers/middlewares/video-abuses.ts | |||
@@ -1,7 +1,8 @@ | |||
1 | import { Response } from 'express' | 1 | import { Response } from 'express' |
2 | import { VideoAbuseModel } from '../../models/video/video-abuse' | 2 | import { VideoAbuseModel } from '../../models/video/video-abuse' |
3 | 3 | ||
4 | async function doesVideoAbuseExist (abuseId: number, videoId: number, res: Response) { | 4 | async function doesVideoAbuseExist (abuseIdArg: number | string, videoId: number, res: Response) { |
5 | const abuseId = parseInt(abuseIdArg + '', 10) | ||
5 | const videoAbuse = await VideoAbuseModel.loadByIdAndVideoId(abuseId, videoId) | 6 | const videoAbuse = await VideoAbuseModel.loadByIdAndVideoId(abuseId, videoId) |
6 | 7 | ||
7 | if (videoAbuse === null) { | 8 | if (videoAbuse === null) { |