Skip to content

Commit

Permalink
feature to bug
Browse files Browse the repository at this point in the history
  • Loading branch information
DFanso committed Jan 8, 2024
1 parent 885e53d commit a89eb27
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions server/src/auth/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export class AuthController {
})
async signUp(@Body() createUserDto: CreateUserDto) {
try {
createUserDto.status = UserStatus.Unverified;
const user = await this.authService.signUp(createUserDto);
return { user };
} catch (error) {
Expand Down
1 change: 0 additions & 1 deletion server/src/users/users.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export class UsersService {
) {}

create(createUserDto: CreateUserDto) {
createUserDto.status = UserStatus.Unverified;
const createdUser = new this.userModel(createUserDto);
return createdUser.save();
}
Expand Down

0 comments on commit a89eb27

Please sign in to comment.