From 647c58fef9d38f8740c9e72f6e041fcfe56bd060 Mon Sep 17 00:00:00 2001 From: stae1102 Date: Mon, 12 Feb 2024 17:45:41 +0900 Subject: [PATCH] refactor: replace entity manager in toggle favorite method --- src/contents/contents.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contents/contents.service.ts b/src/contents/contents.service.ts index bda6778..77d770f 100644 --- a/src/contents/contents.service.ts +++ b/src/contents/contents.service.ts @@ -249,7 +249,7 @@ export class ContentsService { } content.favorite = !content.favorite; - await entityManager!.save(content); + await this.contentRepository.createOne(content, entityManager); return {}; } catch (e) {