fix(queue): I love NestJS ❤️
This commit is contained in:
parent
9a37ae7254
commit
f01e03eedb
3 changed files with 5 additions and 3 deletions
|
@ -19,6 +19,7 @@ import { CleanRemoteFilesProcessorService } from './processors/CleanRemoteFilesP
|
|||
import { DeleteAccountProcessorService } from './processors/DeleteAccountProcessorService.js';
|
||||
import { DeleteDriveFilesProcessorService } from './processors/DeleteDriveFilesProcessorService.js';
|
||||
import { DeleteFileProcessorService } from './processors/DeleteFileProcessorService.js';
|
||||
import { ReindexNotesProcessorService } from './processors/ReindexNotesProcessorService.js';
|
||||
import { ExportBlockingProcessorService } from './processors/ExportBlockingProcessorService.js';
|
||||
import { ExportCustomEmojisProcessorService } from './processors/ExportCustomEmojisProcessorService.js';
|
||||
import { ExportFollowingProcessorService } from './processors/ExportFollowingProcessorService.js';
|
||||
|
@ -53,6 +54,7 @@ import { RelationshipProcessorService } from './processors/RelationshipProcessor
|
|||
CheckExpiredMutingsProcessorService,
|
||||
CleanProcessorService,
|
||||
DeleteDriveFilesProcessorService,
|
||||
ReindexNotesProcessorService,
|
||||
ExportCustomEmojisProcessorService,
|
||||
ExportNotesProcessorService,
|
||||
ExportClipsProcessorService,
|
||||
|
|
|
@ -9,7 +9,7 @@ import type { Config } from '@/config.js';
|
|||
import { DI } from '@/di-symbols.js';
|
||||
import type Logger from '@/logger.js';
|
||||
import { bindThis } from '@/decorators.js';
|
||||
import { ReindexNotesProcessorService } from "@/queue/processors/ReindexNotesProcessorService.js";
|
||||
import { ReindexNotesProcessorService } from './processors/ReindexNotesProcessorService.js';
|
||||
import { WebhookDeliverProcessorService } from './processors/WebhookDeliverProcessorService.js';
|
||||
import { EndedPollNotificationProcessorService } from './processors/EndedPollNotificationProcessorService.js';
|
||||
import { DeliverProcessorService } from './processors/DeliverProcessorService.js';
|
||||
|
|
|
@ -24,7 +24,7 @@ export class ReindexNotesProcessorService {
|
|||
private searchService: SearchService,
|
||||
private queueLoggerService: QueueLoggerService,
|
||||
) {
|
||||
this.logger = this.queueLoggerService.logger.createSubLogger('clean-remote-files');
|
||||
this.logger = this.queueLoggerService.logger.createSubLogger('reindex-notes');
|
||||
}
|
||||
|
||||
@bindThis
|
||||
|
@ -69,7 +69,7 @@ export class ReindexNotesProcessorService {
|
|||
id: LessThanOrEqual(lastNote.id),
|
||||
});
|
||||
|
||||
job.updateProgress(100 / total * indexedCount);
|
||||
await job.updateProgress(100 / total * indexedCount);
|
||||
}
|
||||
|
||||
this.logger.succ('Successfully re-indexed all notes to search engine.');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue