فهرست منبع

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