Update CleanRemoteNotesProcessorService.ts

This commit is contained in:
syuilo 2025-07-17 10:04:17 +09:00
parent ef3740625d
commit a4cc5b3435
1 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,7 @@ export class CleanRemoteNotesProcessorService {
let cursor: MiNote['id'] | null = null;
while (true) {
const notes = await this.notesRepository.find({
const notes: Pick<MiNote, 'id'>[] = await this.notesRepository.find({
where: {
id: cursor ? And(MoreThan(cursor), LessThan(maxId)) : LessThan(maxId),
userHost: Not(IsNull()),
@ -63,6 +63,7 @@ export class CleanRemoteNotesProcessorService {
// 古い順
id: 1,
},
select: ['id'],
});
if (notes.length === 0) {