Update CleanRemoteNotesProcessorService.ts
This commit is contained in:
parent
7c36d220f7
commit
530e954a2a
|
@ -27,7 +27,9 @@ export class CleanRemoteNotesProcessorService {
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public async process(job: Bull.Job<Record<string, unknown>>): Promise<void> {
|
public async process(job: Bull.Job<Record<string, unknown>>): Promise<{
|
||||||
|
deletedCount: number;
|
||||||
|
}> {
|
||||||
this.logger.info('garbage collecting remote notes...');
|
this.logger.info('garbage collecting remote notes...');
|
||||||
|
|
||||||
const maxDuration = 1000 * 60 * 60; // 1 hour
|
const maxDuration = 1000 * 60 * 60; // 1 hour
|
||||||
|
@ -76,6 +78,6 @@ export class CleanRemoteNotesProcessorService {
|
||||||
|
|
||||||
this.logger.succ('garbage collection of remote notes completed.');
|
this.logger.succ('garbage collection of remote notes completed.');
|
||||||
|
|
||||||
// TODO: 実行結果をDBに保存する
|
return { deletedCount };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue