Browse Source

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

Alex 2 years ago
parent
commit
263598f2cf
1 changed files with 1 additions and 1 deletions
  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()
   @Column()
   ownerId!: string;
   ownerId!: string;
 
 
-  @ManyToOne(() => UserEntity)
+  @ManyToOne(() => UserEntity, { eager: true })
   owner!: UserEntity;
   owner!: UserEntity;
 
 
   @Column({ default: 'Untitled Album' })
   @Column({ default: 'Untitled Album' })