Skip to content

Commit

Permalink
Merge pull request #276 from Quickchive/refactor/#274-toggle-favorite
Browse files Browse the repository at this point in the history
refactor: replace entity manager in toggle favorite method
  • Loading branch information
stae1102 authored Feb 12, 2024
2 parents e009e1f + 647c58f commit 09565f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contents/contents.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export class ContentsService {
}

content.favorite = !content.favorite;
await entityManager!.save(content);
await this.contentRepository.createOne(content, entityManager);

return {};
} catch (e) {
Expand Down

0 comments on commit 09565f4

Please sign in to comment.