fix: emit album update event when uploading assets through shared link (#29757)

This commit is contained in:
Daniel Dietzler 2026-07-09 15:21:16 +02:00 committed by GitHub
parent 4fd58885e2
commit fea0db02f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 19 additions and 3 deletions

View file

@ -213,6 +213,11 @@ describe(AssetService.name, () => {
const assets = [...result];
expect(assets).toHaveLength(1);
expect(assets[0]).toEqual(response.id);
expect(ctx.getMock(EventRepository).emit).toHaveBeenCalledWith('AlbumUpdate', {
id: album.id,
recipientId: user.id,
});
});
it('should handle adding a duplicate asset to an album shared link', async () => {