fix: remove job on complete

This commit is contained in:
아르페 2024-02-16 01:41:01 +09:00 committed by 무라쿠모
parent 74c7b5fe70
commit 6bc120866a
No known key found for this signature in database
GPG key ID: 139D6573F92DA9F7

View file

@ -380,7 +380,13 @@ export class QueueService {
@bindThis @bindThis
public createReportAbuseJob(report: MiAbuseUserReport) { public createReportAbuseJob(report: MiAbuseUserReport) {
return this.dbQueue.add('reportAbuse', report); return this.dbQueue.add('reportAbuse',
report,
{
removeOnComplete: true,
removeOnFail: true,
},
);
} }
@bindThis @bindThis