From 263598f2cf120a558d3da0b8967a15c08ec86a6f Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 9 Feb 2023 11:55:24 -0600 Subject: [PATCH] fix(server): get shared link album info doesn't contain owner property (#1708) --- server/libs/infra/src/db/entities/album.entity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' })