mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-10 07:07:21 +00:00
fix: correct property name from bookableConfigs to bookableConfig in BookableSpaceEntity and SpaceEntity
This commit is contained in:
@ -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;
|
||||||
|
|
||||||
|
@ -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();
|
||||||
|
Reference in New Issue
Block a user