mirror of
https://github.com/immich-app/immich.git
synced 2026-03-06 18:17:27 +03:00
fix(server): query fixes (#15509)
This commit is contained in:
@@ -38,6 +38,10 @@ export class TrashRepository implements ITrashRepository {
|
||||
|
||||
@GenerateSql({ params: [[DummyValue.UUID]] })
|
||||
async restoreAll(ids: string[]): Promise<number> {
|
||||
if (ids.length === 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
const { numUpdatedRows } = await this.db
|
||||
.updateTable('assets')
|
||||
.where('status', '=', AssetStatus.TRASHED)
|
||||
|
||||
Reference in New Issue
Block a user