From 3a940711eb91bd09a1952c4e9ac5187820441271 Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Fri, 3 Feb 2023 10:17:36 -0500 Subject: [PATCH] fix(server): duplicate asset (#1540) --- server/apps/immich/src/api-v1/asset/asset.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/apps/immich/src/api-v1/asset/asset.controller.ts b/server/apps/immich/src/api-v1/asset/asset.controller.ts index d0cf3af6a5..391db66936 100644 --- a/server/apps/immich/src/api-v1/asset/asset.controller.ts +++ b/server/apps/immich/src/api-v1/asset/asset.controller.ts @@ -97,7 +97,7 @@ export class AssetController { const responseDto = await this.assetService.uploadFile(authUser, dto, file, livePhotoFile); if (responseDto.duplicate) { - res.send(200); + res.status(200); } return responseDto;