Skip to content

Commit

Permalink
refactor: remove unnecessary parameter in User deleteEmail method
Browse files Browse the repository at this point in the history
  • Loading branch information
schettn committed Jun 20, 2024
1 parent 996515e commit 516e5f2
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(id: string) {
static async deleteEmail() {
const ctx = await service.getContext();

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

@requireAuth({})
Expand Down

0 comments on commit 516e5f2

Please sign in to comment.