Skip to content

Commit

Permalink
Merge pull request #49 from MirzayevOrzu/patch-1
Browse files Browse the repository at this point in the history
fix: typo in variable naming
  • Loading branch information
lambdajon authored Feb 20, 2024
2 parents 0d791e8 + 07c0be9 commit d2c9199
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/author/author.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ export class AuthorService {
}

update(id: string, author: UpdateAuthorDto): Promise<UpdateResult> {
const updateFileds = {};
const updateFields = {};

for (const key in author) {
if (author[key] != undefined) {
updateFileds[key] = author[key];
updateFields[key] = author[key];
}
}

return this.authorRepository.update(id, updateFileds);
return this.authorRepository.update(id, updateFields);
}

delete(id: string): Promise<DeleteResult> {
Expand Down

0 comments on commit d2c9199

Please sign in to comment.