Skip to content

High performance self-hosted photo and video management solution.

fix(server): get shared link album info doesn't contain owner property (#1708)

Alex263598f2cf12
diff --git a/server/libs/infra/src/db/entities/album.entity.ts b/server/libs/infra/src/db/entities/album.entity.ts
index ef87fe4f55..c700a9d934 100644
--- a/server/libs/infra/src/db/entities/album.entity.ts
+++ b/server/libs/infra/src/db/entities/album.entity.ts
@@ -20,7 +20,7 @@ export class AlbumEntity {
@Column()
ownerId!: string;
- @ManyToOne(() => UserEntity)
+ @ManyToOne(() => UserEntity, { eager: true })
owner!: UserEntity;
@Column({ default: 'Untitled Album' })