fix: remove job on complete

This commit is contained in:
オスカー、 2024-02-16 01:41:01 +09:00 committed by 무라쿠모
parent 74c7b5fe70
commit 6bc120866a
Signed by: SWREI
GPG Key ID: 139D6573F92DA9F7

View File

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