Skip to content

Commit

Permalink
refactor: Simplify update method in organizers service
Browse files Browse the repository at this point in the history
  • Loading branch information
farrellh1 committed Oct 6, 2024
1 parent 303846f commit 0648189
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/organizers/organizers.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ export class OrganizersService {
async update(address: string, updateOrganizerDto: UpdateOrganizerDto) {
return await this.model.findOneAndUpdate(
{
where: {
address,
},
address,
},
{
name: updateOrganizerDto.name,
Expand Down

0 comments on commit 0648189

Please sign in to comment.