diff --git a/server/apps/immich/src/api-v1/asset/asset.controller.ts b/server/apps/immich/src/api-v1/asset/asset.controller.ts index f3c13faa91..45b5541496 100644 --- a/server/apps/immich/src/api-v1/asset/asset.controller.ts +++ b/server/apps/immich/src/api-v1/asset/asset.controller.ts @@ -72,7 +72,6 @@ export class AssetController { ): Promise { try { const savedAsset = await this.assetService.createUserAsset(authUser, assetInfo, file.path, file.mimetype); - if (!savedAsset) { throw new BadRequestException('Asset not created'); } diff --git a/server/apps/microservices/src/processors/metadata-extraction.processor.ts b/server/apps/microservices/src/processors/metadata-extraction.processor.ts index 86e1ebace0..1701d41358 100644 --- a/server/apps/microservices/src/processors/metadata-extraction.processor.ts +++ b/server/apps/microservices/src/processors/metadata-extraction.processor.ts @@ -181,9 +181,13 @@ export class MetadataExtractionProcessor { if (videoTags) { if (videoTags['com.apple.quicktime.creationdate']) { createdAt = String(videoTags['com.apple.quicktime.creationdate']); - } else { + } else if (videoTags['creation_time']) { createdAt = String(videoTags['creation_time']); + } else { + createdAt = asset.createdAt; } + } else { + createdAt = asset.createdAt; } await this.assetRepository.update({ id: asset.id }, { duration: durationString, createdAt: createdAt });