replace MarkUserUpdatedBackgroundTask with updateUserQueue
This commit is contained in:
parent
3a2c0fd9da
commit
45df03ab14
9 changed files with 67 additions and 73 deletions
|
|
@ -935,11 +935,6 @@ export class QueueService implements OnModuleInit {
|
|||
return await this.createBackgroundTask({ type: 'delete-ap-logs', dataType, data });
|
||||
}
|
||||
|
||||
@bindThis
|
||||
public async createMarkUserUpdatedJob(userId: string) {
|
||||
return await this.createBackgroundTask({ type: 'mark-user-updated', userId }, userId);
|
||||
}
|
||||
|
||||
private async createBackgroundTask<T extends BackgroundTaskJobData>(data: T, duplication?: string | { id: string, ttl?: number }) {
|
||||
return await this.backgroundTaskQueue.add(
|
||||
data.type,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue