Skip to content

Commit

Permalink
Merge pull request #267 from Quickchive/fix/add-transactional-to-content
Browse files Browse the repository at this point in the history
fix: add transactional to content service methods
  • Loading branch information
stae1102 authored Feb 11, 2024
2 parents 8d98b0e + 8c3c405 commit a2511d3
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 a2511d3

Please sign in to comment.