Skip to content

Commit

Permalink
lol
Browse files Browse the repository at this point in the history
  • Loading branch information
qin-guan authored Sep 23, 2023
1 parent 86c5a1c commit 14521c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/api/user/[id].post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default defineProtectedEventHandler(async (event) => {
)
.returning()

if (updatedUsers.length === 1) {
if (updatedUsers.length > 1) {
throw createError({
status: 500,
statusMessage: 'Internal server error',
Expand Down

0 comments on commit 14521c5

Please sign in to comment.