fix: remove job on complete
This commit is contained in:
parent
74c7b5fe70
commit
6bc120866a
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue