Skip to content

Commit

Permalink
Revert "refactor: remove unnecessary parameter in User deleteEmail me…
Browse files Browse the repository at this point in the history
…thod"

This reverts commit 516e5f2.
  • Loading branch information
schettn committed Jun 20, 2024
1 parent 516e5f2 commit 9c3c826
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/repository/models/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ export class User extends UserRepository {
}

@requireAuth({})
static async deleteEmail() {
static async deleteEmail(id: string) {
const ctx = await service.getContext();

return await ctx.user!.$emailDelete({});
return await ctx.user!.$emailDelete({ id });
}

@requireAuth({})
Expand Down

0 comments on commit 9c3c826

Please sign in to comment.