## Diff from 73e6c8e
```diff
diff --git a/api/spec/factories/Room/BedroomFactory.ts b/api/spec/factories/Room/BedroomFactory.ts
index 0f25e2e..67bb8ec 100644
--- a/api/spec/factories/Room/BedroomFactory.ts
+++ b/api/spec/factories/Room/BedroomFactory.ts
@@ -1,8 +1,8 @@
+import Bedroom from '@models/Room/Bedroom.js'
import { UpdateableProperties } from '@rvoh/dream/types'
-import RoomBedroom from '@models/Room/Bedroom.js'
-export default async function createRoomBedroom(attrs: UpdateableProperties<RoomBedroom> = {}) {
- return await RoomBedroom.create({
+export default async function createRoomBedroom(attrs: UpdateableProperties<Bedroom> = {}) {
+ return await Bedroom.create({
bedTypes: ['twin'],
...attrs,
})
diff --git a/api/src/app/models/Room/Bedroom.ts b/api/src/app/models/Room/Bedroom.ts
index b01cab6..451c883 100644
--- a/api/src/app/models/Room/Bedroom.ts
+++ b/api/src/app/models/Room/Bedroom.ts
@@ -1,17 +1,17 @@
+import Room from '@models/Room.js'
import { Decorators, STI } from '@rvoh/dream'
import { DreamColumn, DreamSerializers } from '@rvoh/dream/types'
-import Room from '@models/Room.js'
-const deco = new Decorators<typeof RoomBedroom>()
+const deco = new Decorators<typeof Bedroom>()
@STI(Room)
-export default class RoomBedroom extends Room {
- public override get serializers(): DreamSerializers<RoomBedroom> {
+export default class Bedroom extends Room {
+ public override get serializers(): DreamSerializers<Bedroom> {
return {
default: 'Room/BedroomSerializer',
summary: 'Room/BedroomSummarySerializer',
}
}
- public bedTypes: DreamColumn<RoomBedroom, 'bedTypes'>
+ public bedTypes: DreamColumn<Bedroom, 'bedTypes'>
}
diff --git a/api/src/app/serializers/Room/BedroomSerializer.ts b/api/src/app/serializers/Room/BedroomSerializer.ts
index e705036..09b4589 100644
--- a/api/src/app/serializers/Room/BedroomSerializer.ts
+++ b/api/src/app/serializers/Room/BedroomSerializer.ts
@@ -1,9 +1,8 @@
+import Bedroom from '@models/Room/Bedroom.js'
import { RoomSerializer, RoomSummarySerializer } from '@serializers/RoomSerializer.js'
-import RoomBedroom from '@models/Room/Bedroom.js'
-export const RoomBedroomSummarySerializer = (roomBedroom: RoomBedroom) =>
- RoomSummarySerializer(RoomBedroom, roomBedroom)
+export const RoomBedroomSummarySerializer = (roomBedroom: Bedroom) =>
+ RoomSummarySerializer(Bedroom, roomBedroom)
-export const RoomBedroomSerializer = (roomBedroom: RoomBedroom) =>
- RoomSerializer(RoomBedroom, roomBedroom)
- .attribute('bedTypes')
+export const RoomBedroomSerializer = (roomBedroom: Bedroom) =>
+ RoomSerializer(Bedroom, roomBedroom).attribute('bedTypes')