mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 01:11:16 +03:00
fix(server): bulk update location (#15642)
This commit is contained in:
@@ -142,7 +142,14 @@ export class AssetService extends BaseService {
|
||||
await this.updateMetadata({ id, dateTimeOriginal, latitude, longitude });
|
||||
}
|
||||
|
||||
await this.assetRepository.updateAll(ids, options);
|
||||
if (
|
||||
options.isArchived != undefined ||
|
||||
options.isFavorite != undefined ||
|
||||
options.duplicateId != undefined ||
|
||||
options.rating != undefined
|
||||
) {
|
||||
await this.assetRepository.updateAll(ids, options);
|
||||
}
|
||||
}
|
||||
|
||||
@OnJob({ name: JobName.ASSET_DELETION_CHECK, queue: QueueName.BACKGROUND_TASK })
|
||||
|
||||
Reference in New Issue
Block a user