Skip to content

Commit

Permalink
Merge pull request #462 from BinaryStudioAcademy/task/OV-00-add-logs
Browse files Browse the repository at this point in the history
OV-00: + logs
  • Loading branch information
nikita-remeslov authored Sep 28, 2024
2 parents 628ad0f + 139a6cf commit 6a3e6db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions backend/src/bundles/public-video/public-video.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class PublicVideoController extends BaseController {
private async findUrlByToken(
options: ApiHandlerOptions,
): Promise<ApiHandlerResponse> {
// eslint-disable-next-line no-console
console.log(options, 'options');
const headers = options.headers as Record<string, { value: string }>;
const videoTokenHeader = headers['video_token']?.toString() ?? '';
// eslint-disable-next-line no-console
Expand Down
4 changes: 0 additions & 4 deletions backend/src/bundles/videos/video.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ class VideoService implements Service {

public async findByUserId(userId: string): Promise<VideoGetAllResponseDto> {
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()),
Expand Down

0 comments on commit 6a3e6db

Please sign in to comment.