fix(queue): I love NestJS ❤️

This commit is contained in:
무라쿠모 2024-09-06 17:33:33 +09:00
parent 9a37ae7254
commit f01e03eedb
No known key found for this signature in database
GPG key ID: 139D6573F92DA9F7
3 changed files with 5 additions and 3 deletions

View file

@ -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.');