Skip to content

Commit

Permalink
Merge pull request #71 from Boost-Coder/feature/fixResponse-#70
Browse files Browse the repository at this point in the history
[#70] 응답 파라미터 수정
  • Loading branch information
koomin1227 authored Apr 17, 2024
2 parents 1b6b538 + dc62385 commit 8f4ac19
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class AuthService {
});

const isSejongJson = await isSejong.json();
if (!isSejongJson.result.is_auth) return { isSejong: false };
if (!isSejongJson.result.is_auth) return { isAuthorized: false };
else {
const updateUserDto = new UpdateUserInfoDto();
updateUserDto.name = isSejongJson.result.body.name;
Expand Down
7 changes: 6 additions & 1 deletion src/user/dto/update-user-info.dto.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
import { IsNumber, IsString } from 'class-validator';
import { IsNumber, IsOptional, IsString } from 'class-validator';

export class UpdateUserInfoDto {
@IsString()
@IsOptional()
nickname: string;

@IsString()
@IsOptional()
major: string;

@IsString()
@IsOptional()
name: string;

@IsNumber()
@IsOptional()
studentId: number;

@IsString()
@IsOptional()
birthDate: Date;
}

0 comments on commit 8f4ac19

Please sign in to comment.