Now throwing errors
This commit is contained in:
@@ -44,7 +44,7 @@ export class UserController {
|
||||
try {
|
||||
user = await createUser.toUser();
|
||||
} catch (error) {
|
||||
return error;
|
||||
throw error;
|
||||
}
|
||||
|
||||
return this.userRepository.save(user);
|
||||
|
||||
Reference in New Issue
Block a user