Skip to content

Commit

Permalink
refactor(mon-pix): remove model password-reset-demand
Browse files Browse the repository at this point in the history
  • Loading branch information
bpetetot committed Nov 30, 2024
1 parent b7a949b commit 1bdaa41
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export const createResetPasswordDemand = async function ({
const temporaryKey = await resetPasswordService.generateTemporaryKey();
const passwordResetDemand = await resetPasswordDemandRepository.create({ email, temporaryKey });

console.log('createResetPasswordDemand temporaryKey', temporaryKey);

await mailService.sendResetPasswordDemandEmail({ email, locale, temporaryKey });

return passwordResetDemand;
Expand Down
6 changes: 0 additions & 6 deletions mon-pix/app/models/password-reset-demand.js

This file was deleted.

3 changes: 3 additions & 0 deletions mon-pix/mirage/models/password-reset-demand.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { Model } from 'miragejs';

export default Model;
17 changes: 0 additions & 17 deletions mon-pix/tests/unit/models/password-reset-demand-test.js

This file was deleted.

0 comments on commit 1bdaa41

Please sign in to comment.