Revert "enhance(backend): migrate bull to bullmq (#10910)"
This reverts commit fd7b77c542.
This commit is contained in:
parent
cc87ef9e76
commit
9b3a92e999
42 changed files with 509 additions and 542 deletions
|
|
@ -7,7 +7,7 @@ import type Logger from '@/logger.js';
|
|||
import { bindThis } from '@/decorators.js';
|
||||
import { UserMutingService } from '@/core/UserMutingService.js';
|
||||
import { QueueLoggerService } from '../QueueLoggerService.js';
|
||||
import type * as Bull from 'bullmq';
|
||||
import type Bull from 'bull';
|
||||
|
||||
@Injectable()
|
||||
export class CheckExpiredMutingsProcessorService {
|
||||
|
|
@ -27,7 +27,7 @@ export class CheckExpiredMutingsProcessorService {
|
|||
}
|
||||
|
||||
@bindThis
|
||||
public async process(): Promise<void> {
|
||||
public async process(job: Bull.Job<Record<string, unknown>>, done: () => void): Promise<void> {
|
||||
this.logger.info('Checking expired mutings...');
|
||||
|
||||
const expired = await this.mutingsRepository.createQueryBuilder('muting')
|
||||
|
|
@ -41,5 +41,6 @@ export class CheckExpiredMutingsProcessorService {
|
|||
}
|
||||
|
||||
this.logger.succ('All expired mutings checked.');
|
||||
done();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue