Skip to content

Commit

Permalink
DEV - clean
Browse files Browse the repository at this point in the history
  • Loading branch information
juliecoust committed Jul 1, 2024
1 parent 7c2f967 commit 877c9ff
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/domain/use-cases/user/create-user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export class CreateUser implements CreateUserUseCase {
// Check if a user with the given email already exists
if (preexistentUser) {
// User should not be deleted
console.log(preexistentUser)
if (preexistentUser.deleted) throw new Error("User is deleted");

// If the user exists but hasn't validated their email
Expand Down

0 comments on commit 877c9ff

Please sign in to comment.