From 139a6cf6d1d9006719445667bac6a11b36328a21 Mon Sep 17 00:00:00 2001 From: Sergiy Date: Sat, 28 Sep 2024 13:30:29 +0300 Subject: [PATCH] OV-00: + logs --- backend/src/bundles/public-video/public-video.controller.ts | 2 ++ backend/src/bundles/videos/video.service.ts | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/src/bundles/public-video/public-video.controller.ts b/backend/src/bundles/public-video/public-video.controller.ts index b0c565f1..d8b95bab 100644 --- a/backend/src/bundles/public-video/public-video.controller.ts +++ b/backend/src/bundles/public-video/public-video.controller.ts @@ -28,6 +28,8 @@ class PublicVideoController extends BaseController { private async findUrlByToken( options: ApiHandlerOptions, ): Promise { + // eslint-disable-next-line no-console + console.log(options, 'options'); const headers = options.headers as Record; const videoTokenHeader = headers['video_token']?.toString() ?? ''; // eslint-disable-next-line no-console diff --git a/backend/src/bundles/videos/video.service.ts b/backend/src/bundles/videos/video.service.ts index 0f30547a..aeffd0ef 100644 --- a/backend/src/bundles/videos/video.service.ts +++ b/backend/src/bundles/videos/video.service.ts @@ -44,10 +44,6 @@ class VideoService implements Service { public async findByUserId(userId: string): Promise { const items = await this.videoRepository.findByUserId(userId); - // eslint-disable-next-line no-console - console.log(userId); - // eslint-disable-next-line no-console - console.log(items); return { items: items.map((it) => it.toObject()),