From 35c4887e4aedc6a28f27e46f2f98ff90c8bbe171 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 17 May 2023 14:28:58 -0500 Subject: [PATCH] fix return update asset with new update time (#2457) --- server/apps/immich/src/api-v1/asset/asset-repository.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/apps/immich/src/api-v1/asset/asset-repository.ts b/server/apps/immich/src/api-v1/asset/asset-repository.ts index 0a0d9feeee..a5500a020c 100644 --- a/server/apps/immich/src/api-v1/asset/asset-repository.ts +++ b/server/apps/immich/src/api-v1/asset/asset-repository.ts @@ -295,7 +295,11 @@ export class AssetRepository implements IAssetRepository { isArchived: asset.isArchived, }); - return asset; + return this.assetRepository.findOneOrFail({ + where: { + id: asset.id, + }, + }); } /**