diff --git a/src/modules/author/author.service.ts b/src/modules/author/author.service.ts index 25dcffd..75a93bc 100644 --- a/src/modules/author/author.service.ts +++ b/src/modules/author/author.service.ts @@ -27,15 +27,15 @@ export class AuthorService { } update(id: string, author: UpdateAuthorDto): Promise { - 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 {