ソースを参照

fix(server): id of the deleted asset wasn't passed to the response (#1532)

Alex 2 年 前
コミット
b019ab79f9

+ 1 - 1
server/apps/immich/src/api-v1/asset/asset.service.ts

@@ -460,7 +460,7 @@ export class AssetService {
       try {
         await this._assetRepository.remove(asset);
 
-        result.push({ id: asset.id, status: DeleteAssetStatusEnum.SUCCESS });
+        result.push({ id, status: DeleteAssetStatusEnum.SUCCESS });
         deleteQueue.push(asset as any);
 
         // TODO refactor this to use cascades

+ 1 - 1
server/immich-openapi-specs.json

@@ -2707,7 +2707,7 @@
   "info": {
     "title": "Immich",
     "description": "Immich API",
-    "version": "1.43.1",
+    "version": "1.44.0",
     "contact": {}
   },
   "tags": [],