From 870a65fa6d0caaa6ab6b4806bf22abcb3d9c8742 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 29 Jan 2023 20:13:34 -0600 Subject: [PATCH] fix(server): Cannot remove album with shared links (#1479) --- server/apps/immich/src/api-v1/album/album.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/apps/immich/src/api-v1/album/album.service.ts b/server/apps/immich/src/api-v1/album/album.service.ts index a9e9145179..30c0eb53a4 100644 --- a/server/apps/immich/src/api-v1/album/album.service.ts +++ b/server/apps/immich/src/api-v1/album/album.service.ts @@ -101,7 +101,7 @@ export class AlbumService { const album = await this._getAlbum({ authUser, albumId }); for (const sharedLink of album.sharedLinks) { - await this.shareCore.remove(sharedLink.id, authUser.id); + await this.shareCore.remove(authUser.id, sharedLink.id); } await this._albumRepository.delete(album);