Skip to content

Commit

Permalink
coerce to boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
harishv7 committed Jan 15, 2025
1 parent c95230f commit 11d220c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/studio/src/server/modules/user/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,5 @@ export const isUserDeleted = async (email: string) => {
// Email is a unique field in User table
.executeTakeFirst()

console.log(`isUserDeleted: ${JSON.stringify(user)}`)

return user?.deletedAt
return !!user?.deletedAt
}

0 comments on commit 11d220c

Please sign in to comment.