From 8c3c405be0cc0e71e8107c7b5896be0315792630 Mon Sep 17 00:00:00 2001 From: stae1102 Date: Sun, 11 Feb 2024 14:23:35 +0900 Subject: [PATCH] fix: add transactional to content service methods --- src/contents/contents.service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/contents/contents.service.ts b/src/contents/contents.service.ts index f534ac1..b7ba1d9 100644 --- a/src/contents/contents.service.ts +++ b/src/contents/contents.service.ts @@ -173,6 +173,7 @@ export class ContentsService { } } + @Transactional() async updateContent( user: User, { @@ -236,6 +237,7 @@ export class ContentsService { } } + @Transactional() async toggleFavorite( user: User, contentId: number, @@ -265,6 +267,7 @@ export class ContentsService { } } + @Transactional() async deleteContent( user: User, contentId: number,