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;
|
||||
|
||||
@OneToOne(() => SpaceEntity, (space) => space.bookableConfigs)
|
||||
@OneToOne(() => SpaceEntity, (space) => space.bookableConfig)
|
||||
@JoinColumn({ name: 'space_uuid' })
|
||||
space: SpaceEntity;
|
||||
|
||||
|
@ -124,7 +124,7 @@ export class SpaceEntity extends AbstractEntity<SpaceDto> {
|
||||
occupancyDaily: SpaceDailyOccupancyDurationEntity[];
|
||||
|
||||
@OneToOne(() => BookableSpaceEntity, (bookable) => bookable.space)
|
||||
bookableConfigs: BookableSpaceEntity;
|
||||
bookableConfig: BookableSpaceEntity;
|
||||
|
||||
constructor(partial: Partial<SpaceEntity>) {
|
||||
super();
|
||||
|
Reference in New Issue
Block a user