mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	feat(web/server): Add options to rerun job on all assets (#1422)
This commit is contained in:
		| @@ -216,7 +216,7 @@ export class MetadataExtractionProcessor { | ||||
|         } | ||||
|       } | ||||
|  | ||||
|       await this.exifRepository.save(newExif); | ||||
|       await this.exifRepository.upsert(newExif, { conflictPaths: ['assetId'] }); | ||||
|     } catch (error: any) { | ||||
|       this.logger.error(`Error extracting EXIF ${error}`, error?.stack); | ||||
|     } | ||||
| @@ -327,7 +327,7 @@ export class MetadataExtractionProcessor { | ||||
|         } | ||||
|       } | ||||
|  | ||||
|       await this.exifRepository.save(newExif); | ||||
|       await this.exifRepository.upsert(newExif, { conflictPaths: ['assetId'] }); | ||||
|       await this.assetRepository.update({ id: asset.id }, { duration: durationString, createdAt: createdAt }); | ||||
|     } catch (err) { | ||||
|       // do nothing | ||||
|   | ||||
		Reference in New Issue
	
	Block a user