fix: correct property name from bookableConfigs to bookableConfig in BookableSpaceEntity and SpaceEntity

This commit is contained in:
faris Aljohari
2025-06-23 00:39:29 -06:00
parent 49cc762962
commit d3d84da5e3
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ export class BookableSpaceEntity extends AbstractEntity {
}) })
public uuid: string; public uuid: string;
@OneToOne(() => SpaceEntity, (space) => space.bookableConfigs) @OneToOne(() => SpaceEntity, (space) => space.bookableConfig)
@JoinColumn({ name: 'space_uuid' }) @JoinColumn({ name: 'space_uuid' })
space: SpaceEntity; space: SpaceEntity;

View File

@ -124,7 +124,7 @@ export class SpaceEntity extends AbstractEntity<SpaceDto> {
occupancyDaily: SpaceDailyOccupancyDurationEntity[]; occupancyDaily: SpaceDailyOccupancyDurationEntity[];
@OneToOne(() => BookableSpaceEntity, (bookable) => bookable.space) @OneToOne(() => BookableSpaceEntity, (bookable) => bookable.space)
bookableConfigs: BookableSpaceEntity; bookableConfig: BookableSpaceEntity;
constructor(partial: Partial<SpaceEntity>) { constructor(partial: Partial<SpaceEntity>) {
super(); super();