fix reset password error when user does not exist
This commit is contained in:
parent
91ea35f7ae
commit
4a34cfe993
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user