mirror of
https://github.com/samsonjs/immich.git
synced 2026-03-25 09:15:56 +00:00
fix: metadata extraction race condition (#25866)
This commit is contained in:
parent
af1ecaf5cc
commit
2990bde0bb
1 changed files with 1 additions and 1 deletions
|
|
@ -307,7 +307,6 @@ export class MetadataService extends BaseService {
|
|||
const assetHeight = isSidewards ? validate(width) : validate(height);
|
||||
|
||||
const promises: Promise<unknown>[] = [
|
||||
this.assetRepository.upsertExif(exifData, { lockedPropertiesBehavior: 'skip' }),
|
||||
this.assetRepository.update({
|
||||
id: asset.id,
|
||||
duration: this.getDuration(exifTags),
|
||||
|
|
@ -322,6 +321,7 @@ export class MetadataService extends BaseService {
|
|||
}),
|
||||
];
|
||||
|
||||
await this.assetRepository.upsertExif(exifData, { lockedPropertiesBehavior: 'skip' });
|
||||
await this.applyTagList(asset);
|
||||
|
||||
if (this.isMotionPhoto(asset, exifTags)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue