Skip to content

Commit

Permalink
OV-456: - logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiy4 committed Sep 28, 2024
1 parent 95ecc6f commit f8056e8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
5 changes: 1 addition & 4 deletions backend/src/bundles/public-video/public-video.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,8 @@ class PublicVideoController extends BaseController {
body: { id: string };
}>,
): Promise<ApiHandlerResponse> {
// eslint-disable-next-line no-console
console.log(options.body, 'options.body');
const jwt = options.body.id;
// eslint-disable-next-line no-console
console.log(jwt, 'jwt');

return {
status: HTTPCode.OK,
payload: await this.publicVideoService.findUrlByToken(jwt),
Expand Down
3 changes: 1 addition & 2 deletions backend/src/bundles/videos/video.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ class VideoRepository implements Repository {

public async findById(id: string): Promise<VideoEntity | null> {
const video = await this.videoModel.query().findById(id).execute();
// eslint-disable-next-line no-console
console.log(video);

return video ? VideoEntity.initialize(video) : null;
}

Expand Down
3 changes: 1 addition & 2 deletions backend/src/common/services/token/token.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ class TokenService {

public async getIdFromToken(token: string): Promise<string | null> {
const payload = await this.verifyToken(token);
// eslint-disable-next-line no-console
console.log(payload);

return (payload?.['id'] as string) ?? null;
}
}
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/bundles/preview/components/preview-wrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { Preview } from '~/bundles/preview/pages/preview.js';

const PreviewWrapper: React.FC = () => {
const { jwt } = useParams<{ jwt: string }>();
// eslint-disable-next-line no-console
console.log('PreviewWrapper', jwt);

return <Preview jwt={jwt ?? ''} />;
};

Expand Down

0 comments on commit f8056e8

Please sign in to comment.