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

[NDD-172]: 로그인 완료 시 마이페이지로 리다이렉트 되도록 구현 (1h / 1h) #58

Merged
merged 2 commits into from
Nov 16, 2023
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
3 changes: 2 additions & 1 deletion BE/src/auth/controller/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class AuthController {
await this.authService.login(userRequest),
COOKIE_OPTIONS,
)
.send();
.redirect('https://www.gomterview.com/mypage');
}

@Delete('logout')
Expand Down Expand Up @@ -102,4 +102,5 @@ export class AuthController {
const COOKIE_OPTIONS: CookieOptions = {
httpOnly: true,
path: '/',
sameSite: 'lax',
};
2 changes: 1 addition & 1 deletion BE/src/video/dto/createVideoRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class CreateVideoRequest {
@ApiProperty(createPropertyOption('example.mp4', '비디오 파일 이름', String))
@IsString()
@IsNotEmpty()
name: string;
videoName: string;

@ApiProperty(
createPropertyOption('https://example.com', '비디오 URL', String),
Expand Down
2 changes: 1 addition & 1 deletion BE/src/video/entity/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class Video extends DefaultEntity {
return new Video(
member.id,
createVidoeRequest.questionId,
createVidoeRequest.name,
createVidoeRequest.videoName,
createVidoeRequest.url,
false,
);
Expand Down
Loading