Skip to content

Commit 4a34cfe

Browse files
committed
fix reset password error when user does not exist
1 parent 91ea35f commit 4a34cfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/queries/user.queries.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ async function update(match, update, methods) {
7272
});
7373

7474
const user = await query.select("id").first();
75-
if (!user) return null;
75+
if (!user) return {};
7676

7777
const updateQuery = trx("users").where("id", user.id);
7878
if (methods?.increments) {

0 commit comments

Comments
 (0)