mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(server): Create album response doesn't have owner property as required (#1704)
This commit is contained in:
parent
43359f1d26
commit
8c20d8cb3d
1 changed files with 5 additions and 1 deletions
|
|
@ -84,7 +84,11 @@ export class AlbumRepository implements IAlbumRepository {
|
||||||
newAlbum.ownerId = ownerId;
|
newAlbum.ownerId = ownerId;
|
||||||
newAlbum.albumName = createAlbumDto.albumName;
|
newAlbum.albumName = createAlbumDto.albumName;
|
||||||
|
|
||||||
const album = await transactionalEntityManager.save(newAlbum);
|
let album = await transactionalEntityManager.save(newAlbum);
|
||||||
|
album = await transactionalEntityManager.findOneOrFail(AlbumEntity, {
|
||||||
|
where: { id: album.id },
|
||||||
|
relations: ['owner'],
|
||||||
|
});
|
||||||
|
|
||||||
// Add shared users
|
// Add shared users
|
||||||
if (createAlbumDto.sharedWithUserIds?.length) {
|
if (createAlbumDto.sharedWithUserIds?.length) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue