mirror of
https://github.com/immich-app/immich.git
synced 2026-02-04 08:49:01 +03:00
fix: metadata extraction race condition (#25866)
This commit is contained in:
@@ -307,7 +307,6 @@ export class MetadataService extends BaseService {
|
|||||||
const assetHeight = isSidewards ? validate(width) : validate(height);
|
const assetHeight = isSidewards ? validate(width) : validate(height);
|
||||||
|
|
||||||
const promises: Promise<unknown>[] = [
|
const promises: Promise<unknown>[] = [
|
||||||
this.assetRepository.upsertExif(exifData, { lockedPropertiesBehavior: 'skip' }),
|
|
||||||
this.assetRepository.update({
|
this.assetRepository.update({
|
||||||
id: asset.id,
|
id: asset.id,
|
||||||
duration: this.getDuration(exifTags),
|
duration: this.getDuration(exifTags),
|
||||||
@@ -322,6 +321,7 @@ export class MetadataService extends BaseService {
|
|||||||
}),
|
}),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
await this.assetRepository.upsertExif(exifData, { lockedPropertiesBehavior: 'skip' });
|
||||||
await this.applyTagList(asset);
|
await this.applyTagList(asset);
|
||||||
|
|
||||||
if (this.isMotionPhoto(asset, exifTags)) {
|
if (this.isMotionPhoto(asset, exifTags)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user