Skip to content

Commit

Permalink
removed console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
denniswangcodes committed Mar 20, 2024
1 parent cc11f17 commit 942d7a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions server/src/acccount-manager/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export class UsersService {

async create(createUserDto: CreateUserInternal): Promise<User> {
try {
console.log('createUserDto type', typeof createUserDto.password); // Log to verify the structure and types
if (typeof createUserDto.password !== 'string') {
throw new Error('Password must be a string');
}
Expand All @@ -24,7 +23,7 @@ export class UsersService {
} catch (err) {
Logger.error(`${err.message}: \n${err.stack}`, UsersService.name);
throw new HttpException(
{ status: HttpStatus.CONFLICT, message: 'Http Individual User Signup Error' },
{ status: HttpStatus.CONFLICT, message: 'createUserDto HTTP signup error' },
HttpStatus.CONFLICT,
);
}
Expand Down
2 changes: 1 addition & 1 deletion server/src/user-org/user-org.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class UserOrganizationsController {
): Promise<ReturnUserOrganizationDto> {
if (await this.userService.userEmailExists(createUserOrganizationsDto.user.email)) {
throw new HttpException(
{ status: HttpStatus.CONFLICT, message: 'Email already exists' },
{ status: HttpStatus.CONFLICT, message: 'createUserOrganization HTTP signup error' },
HttpStatus.CONFLICT,
);
}
Expand Down

0 comments on commit 942d7a1

Please sign in to comment.