Skip to content

Commit

Permalink
fix reset password error when user does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
poeti8 committed Jan 22, 2025
1 parent 91ea35f commit 4a34cfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/queries/user.queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async function update(match, update, methods) {
});

const user = await query.select("id").first();
if (!user) return null;
if (!user) return {};

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

0 comments on commit 4a34cfe

Please sign in to comment.