saving work
This commit is contained in:
parent
949907beb3
commit
bef78535c9
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ export class AutoDeleteNotesProcessorService {
|
|||
const notes = await this.notesRepository.createQueryBuilder('note')
|
||||
.where('note."userId" = :userId', { userId: user.user.id })
|
||||
.andWhere('note.id < :untilId', { untilId })
|
||||
.andWhere('note.id NOT IN (SELECT "noteId" FROM note_favorite WHERE "userId" = :userId)');
|
||||
.getMany();
|
||||
|
||||
for (const note of notes) {
|
||||
|
|
Loading…
Reference in a new issue