浏览代码

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

Alex 2 年之前
父节点
当前提交
263598f2cf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      server/libs/infra/src/db/entities/album.entity.ts

+ 1 - 1
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' })