fix: shared link add to album (#27063)

This commit is contained in:
Jason Rasmussen
2026-03-20 14:14:07 -04:00
committed by GitHub
parent 644f705be1
commit 813d684aaa
13 changed files with 230 additions and 22 deletions

View File

@@ -220,9 +220,9 @@ export class MediumTestContext<S extends BaseService = BaseService> {
return { result };
}
async newAlbum(dto: Insertable<AlbumTable>) {
async newAlbum(dto: Insertable<AlbumTable>, assetIds?: string[]) {
const album = mediumFactory.albumInsert(dto);
const result = await this.get(AlbumRepository).create(album, [], []);
const result = await this.get(AlbumRepository).create(album, assetIds ?? [], []);
return { album, result };
}