Skip to content

Commit

Permalink
Merge pull request #87 from DFanso/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
DFanso authored Jan 8, 2024
2 parents 15132bb + 6a6f12f commit ff6d2ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 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 Expand Up @@ -79,8 +80,6 @@ export class AuthController {
throw new ConflictException('User Already Exits');
}
}
const user = await this.authService.signUp(createUserDto);
return { user };
}

@Post('signin')
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

1 comment on commit ff6d2ea

@vercel
Copy link

@vercel vercel bot commented on ff6d2ea Jan 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

cine-magic-cinema-admin – ./admin

cine-magic-cinema-admin-dfanso.vercel.app
cine-magic-cinema.vercel.app
cine-magic-cinema-admin-git-main-dfanso.vercel.app

Please sign in to comment.