Skip to content

Commit

Permalink
fix: use falsey
Browse files Browse the repository at this point in the history
  • Loading branch information
qin-guan committed Sep 19, 2023
1 parent 8575d56 commit 7a7b2bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/api/auth/verify.post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default defineEventHandler(async (event) => {
where: (users, { eq }) => eq(users.email, data.email),
})

if (user === null) {
if (!user) {
throw createError({
status: 404,
statusMessage: 'Not found',
Expand Down

0 comments on commit 7a7b2bc

Please # to comment.