0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-28 00:59:18 -05:00

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:
Alex 2023-12-18 07:13:36 -06:00 committed by GitHub
parent b68800d45c
commit 3beeffaaf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 }) =>
({ ({
exifInfo: { tags,
objects,
country, country,
state, state,
city, city,
description, description,
model, model,
make, make,
dateTimeOriginal,
exifImageHeight,
exifImageWidth,
exposureTime,
fNumber,
fileSizeInByte,
focalLength,
iso,
latitude,
lensModel,
longitude,
modifyDate,
projectionType,
timeZone,
...assetInfo
}) =>
({
exifInfo: {
city,
country,
dateTimeOriginal,
description,
exifImageHeight,
exifImageWidth,
exposureTime,
fNumber,
fileSizeInByte,
focalLength,
iso,
latitude,
lensModel,
longitude,
make,
model,
modifyDate,
projectionType,
state,
timeZone,
}, },
smartInfo: { smartInfo: {
tags, tags,