1 import express from 'express'
2 import { VideoChannelSyncModel } from '@server/models/video/video-channel-sync'
3 import { HttpStatusCode } from '@shared/models'
5 async function doesVideoChannelSyncIdExist (id: number, res: express.Response) {
6 const sync = await VideoChannelSyncModel.loadWithChannel(+id)
10 status: HttpStatusCode.NOT_FOUND_404,
11 message: 'Video channel sync not found'
16 res.locals.videoChannelSync = sync
20 // ---------------------------------------------------------------------------
23 doesVideoChannelSyncIdExist