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