From 07c0be9805bfcc5933ac385f2d7b0941682074a4 Mon Sep 17 00:00:00 2001 From: MirzayevOrzu <72085156+MirzayevOrzu@users.noreply.github.com> Date: Mon, 1 Aug 2022 16:40:01 +0500 Subject: [PATCH] fix: typo in variable naming --- src/modules/author/author.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {