Skip to content

Commit

Permalink
fix(pocketbase): return context fail
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo-cristino committed May 21, 2024
1 parent b0ff33d commit b87ee9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/pocketbase/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export const requestPasswordReset = p.new(['email'], 'ask password reset', async
const res = await pb.collection('users').requestPasswordReset(email);
return ctx.pass({res});
} catch (err) {
ctx.fail(err.message)
return ctx.fail(err.message);
}
});

Expand All @@ -196,7 +196,7 @@ export const confirmPassswordReset = p.new(['reset_parameters'], 'confirm passwo
const res = await pb.collection('users').confirmPasswordReset(p.token, p.newPassword, p.newPasswordConfirm);
return ctx.pass(res);
} catch (err) {
ctx.fail(err.message)
return ctx.fail(err.message);
}
});

Expand Down

0 comments on commit b87ee9e

Please sign in to comment.