refactor: stream asset ids for library queue jobs (#16666)
This commit is contained in:
@@ -144,4 +144,8 @@ export class LibraryRepository {
|
||||
total: Number(stats.photos) + Number(stats.videos),
|
||||
};
|
||||
}
|
||||
|
||||
streamAssetIds(libraryId: string) {
|
||||
return this.db.selectFrom('assets').select(['id']).where('libraryId', '=', libraryId).stream();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user