Skip to content

Commit

Permalink
fix: add transactional to content service methods
Browse files Browse the repository at this point in the history
  • Loading branch information
stae1102 committed Feb 11, 2024
1 parent 8d98b0e commit 8c3c405
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/contents/contents.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ export class ContentsService {
}
}

@Transactional()
async updateContent(
user: User,
{
Expand Down Expand Up @@ -236,6 +237,7 @@ export class ContentsService {
}
}

@Transactional()
async toggleFavorite(
user: User,
contentId: number,
Expand Down Expand Up @@ -265,6 +267,7 @@ export class ContentsService {
}
}

@Transactional()
async deleteContent(
user: User,
contentId: number,
Expand Down

0 comments on commit 8c3c405

Please sign in to comment.