Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

production: + logs #460

Merged
merged 1 commit into from
Sep 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ class PublicVideoController extends BaseController {
): Promise<ApiHandlerResponse> {
const headers = options.headers as Record<string, { value: string }>;
const videoTokenHeader = headers['video_token']?.toString() ?? '';

// eslint-disable-next-line no-console
console.log(videoTokenHeader);
return {
status: HTTPCode.OK,
payload:
Expand Down
3 changes: 2 additions & 1 deletion backend/src/bundles/videos/video.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ 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
2 changes: 2 additions & 0 deletions backend/src/common/services/token/token.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ 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
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class PublicVideosApi extends BaseHttpApi {
headers.append('video_token', jwt.replaceAll('~', '.'));

// eslint-disable-next-line no-console
console.log('headers', headers);
console.log('headers', headers.get('video_token'));

const options = {
method: HTTPMethod.GET,
Expand Down
Loading