Skip to content

Commit

Permalink
add job for reject
Browse files Browse the repository at this point in the history
  • Loading branch information
bahram1249 committed Jul 2, 2024
1 parent 6d23a24 commit 90ae3dd
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,15 @@ export class ProductCommentService {
comment.isDeleted = true;
comment = await comment.save();

// calculate score comment
await this.scoreCommentQueue.add(
SCORE_COMMENT_JOB,
{
commentId: comment.id,
},
{ removeOnComplete: true },
);

return {
result: comment,
};
Expand Down

0 comments on commit 90ae3dd

Please sign in to comment.