forked from Cutlery/immich
		
	fix(server): metadata search does not return all EXIF info (#5810)
* docs: update default config content * fix(server): metadata search does not return all EXIF info * remove console log * generate sql * Correct sql generation
This commit is contained in:
		
							parent
							
								
									b68800d45c
								
							
						
					
					
						commit
						3beeffaaf0
					
				| @ -826,15 +826,53 @@ export class AssetRepository implements IAssetRepository { | |||||||
|       .getRawMany(); |       .getRawMany(); | ||||||
| 
 | 
 | ||||||
|     return rows.map( |     return rows.map( | ||||||
|       ({ tags, objects, country, state, city, description, model, make, ...assetInfo }) => |       ({ | ||||||
|  |         tags, | ||||||
|  |         objects, | ||||||
|  |         country, | ||||||
|  |         state, | ||||||
|  |         city, | ||||||
|  |         description, | ||||||
|  |         model, | ||||||
|  |         make, | ||||||
|  |         dateTimeOriginal, | ||||||
|  |         exifImageHeight, | ||||||
|  |         exifImageWidth, | ||||||
|  |         exposureTime, | ||||||
|  |         fNumber, | ||||||
|  |         fileSizeInByte, | ||||||
|  |         focalLength, | ||||||
|  |         iso, | ||||||
|  |         latitude, | ||||||
|  |         lensModel, | ||||||
|  |         longitude, | ||||||
|  |         modifyDate, | ||||||
|  |         projectionType, | ||||||
|  |         timeZone, | ||||||
|  |         ...assetInfo | ||||||
|  |       }) => | ||||||
|         ({ |         ({ | ||||||
|           exifInfo: { |           exifInfo: { | ||||||
|             country, |  | ||||||
|             state, |  | ||||||
|             city, |             city, | ||||||
|  |             country, | ||||||
|  |             dateTimeOriginal, | ||||||
|             description, |             description, | ||||||
|             model, |             exifImageHeight, | ||||||
|  |             exifImageWidth, | ||||||
|  |             exposureTime, | ||||||
|  |             fNumber, | ||||||
|  |             fileSizeInByte, | ||||||
|  |             focalLength, | ||||||
|  |             iso, | ||||||
|  |             latitude, | ||||||
|  |             lensModel, | ||||||
|  |             longitude, | ||||||
|             make, |             make, | ||||||
|  |             model, | ||||||
|  |             modifyDate, | ||||||
|  |             projectionType, | ||||||
|  |             state, | ||||||
|  |             timeZone, | ||||||
|           }, |           }, | ||||||
|           smartInfo: { |           smartInfo: { | ||||||
|             tags, |             tags, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user