Skip to content

Commit 6a3e6db

Browse files
Merge pull request #462 from BinaryStudioAcademy/task/OV-00-add-logs
OV-00: + logs
2 parents 628ad0f + 139a6cf commit 6a3e6db

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

backend/src/bundles/public-video/public-video.controller.ts

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ class PublicVideoController extends BaseController {
2828
private async findUrlByToken(
2929
options: ApiHandlerOptions,
3030
): Promise<ApiHandlerResponse> {
31+
// eslint-disable-next-line no-console
32+
console.log(options, 'options');
3133
const headers = options.headers as Record<string, { value: string }>;
3234
const videoTokenHeader = headers['video_token']?.toString() ?? '';
3335
// eslint-disable-next-line no-console

backend/src/bundles/videos/video.service.ts

-4
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ class VideoService implements Service {
4444

4545
public async findByUserId(userId: string): Promise<VideoGetAllResponseDto> {
4646
const items = await this.videoRepository.findByUserId(userId);
47-
// eslint-disable-next-line no-console
48-
console.log(userId);
49-
// eslint-disable-next-line no-console
50-
console.log(items);
5147

5248
return {
5349
items: items.map((it) => it.toObject()),

0 commit comments

Comments
 (0)