X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmiddlewares%2Fvalidators%2Fshared%2Fvideos.ts;h=71b81654f582ab24d95828d134539173c2b1be46;hb=41fb13c330de629df2d23379209e79c7af0f2e9a;hp=6131379ce4683ed7f44fbf5591c313e91a56c0fe;hpb=71d4af1efc810f853e1a0d986bf758c201692594;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/middlewares/validators/shared/videos.ts b/server/middlewares/validators/shared/videos.ts index 6131379ce..71b81654f 100644 --- a/server/middlewares/validators/shared/videos.ts +++ b/server/middlewares/validators/shared/videos.ts @@ -10,11 +10,9 @@ import { MVideoFullLight, MVideoId, MVideoImmutable, - MVideoThumbnail, - MVideoWithRights + MVideoThumbnail } from '@server/types/models' -import { HttpStatusCode } from '@shared/core-utils' -import { UserRight } from '@shared/models' +import { HttpStatusCode, UserRight } from '@shared/models' async function doesVideoExist (id: number | string, res: Response, fetchType: VideoLoadType = 'all') { const userId = res.locals.oauth ? res.locals.oauth.token.User.id : undefined