Update CleanRemoteNotesProcessorService.ts
This commit is contained in:
parent
ef3740625d
commit
a4cc5b3435
|
@ -50,7 +50,7 @@ export class CleanRemoteNotesProcessorService {
|
||||||
let cursor: MiNote['id'] | null = null;
|
let cursor: MiNote['id'] | null = null;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
const notes = await this.notesRepository.find({
|
const notes: Pick<MiNote, 'id'>[] = await this.notesRepository.find({
|
||||||
where: {
|
where: {
|
||||||
id: cursor ? And(MoreThan(cursor), LessThan(maxId)) : LessThan(maxId),
|
id: cursor ? And(MoreThan(cursor), LessThan(maxId)) : LessThan(maxId),
|
||||||
userHost: Not(IsNull()),
|
userHost: Not(IsNull()),
|
||||||
|
@ -63,6 +63,7 @@ export class CleanRemoteNotesProcessorService {
|
||||||
// 古い順
|
// 古い順
|
||||||
id: 1,
|
id: 1,
|
||||||
},
|
},
|
||||||
|
select: ['id'],
|
||||||
});
|
});
|
||||||
|
|
||||||
if (notes.length === 0) {
|
if (notes.length === 0) {
|
||||||
|
|
Loading…
Reference in New Issue