mirror of
https://github.com/immich-app/immich.git
synced 2025-03-01 15:11:21 +01:00
fix(server): Cannot remove album with shared links (#1479)
This commit is contained in:
parent
199eb20b66
commit
870a65fa6d
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ export class AlbumService {
|
||||||
const album = await this._getAlbum({ authUser, albumId });
|
const album = await this._getAlbum({ authUser, albumId });
|
||||||
|
|
||||||
for (const sharedLink of album.sharedLinks) {
|
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);
|
await this._albumRepository.delete(album);
|
||||||
|
|
Loading…
Add table
Reference in a new issue