aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/shared/video-channel-syncs.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares/validators/shared/video-channel-syncs.ts')
-rw-r--r--server/middlewares/validators/shared/video-channel-syncs.ts24
1 files changed, 0 insertions, 24 deletions
diff --git a/server/middlewares/validators/shared/video-channel-syncs.ts b/server/middlewares/validators/shared/video-channel-syncs.ts
deleted file mode 100644
index a6e51eb97..000000000
--- a/server/middlewares/validators/shared/video-channel-syncs.ts
+++ /dev/null
@@ -1,24 +0,0 @@
1import express from 'express'
2import { VideoChannelSyncModel } from '@server/models/video/video-channel-sync'
3import { HttpStatusCode } from '@shared/models'
4
5async function doesVideoChannelSyncIdExist (id: number, res: express.Response) {
6 const sync = await VideoChannelSyncModel.loadWithChannel(+id)
7
8 if (!sync) {
9 res.fail({
10 status: HttpStatusCode.NOT_FOUND_404,
11 message: 'Video channel sync not found'
12 })
13 return false
14 }
15
16 res.locals.videoChannelSync = sync
17 return true
18}
19
20// ---------------------------------------------------------------------------
21
22export {
23 doesVideoChannelSyncIdExist
24}