Parcourir la source

fix(server): Cannot remove album with shared links (#1479)

Alex il y a 2 ans
Parent
commit
870a65fa6d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      server/apps/immich/src/api-v1/album/album.service.ts

+ 1 - 1
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);