High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(server): Create album response doesn't have owner property as required (#1704)
Alex8c20d8cb3d74
diff --git a/server/apps/immich/src/api-v1/album/album-repository.ts b/server/apps/immich/src/api-v1/album/album-repository.tsindex 81f72db18e..38a2b4406a 100644--- a/server/apps/immich/src/api-v1/album/album-repository.ts+++ b/server/apps/immich/src/api-v1/album/album-repository.ts@@ -84,7 +84,11 @@ export class AlbumRepository implements IAlbumRepository {newAlbum.ownerId = ownerId;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 usersif (createAlbumDto.sharedWithUserIds?.length) {