Remove amenity description field
All checks were successful
build-and-deploy / build-deploy (push) Successful in 27s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 27s
This commit is contained in:
@@ -49,8 +49,7 @@ class RoomAmenities(
|
|||||||
val amenity = RoomAmenity(
|
val amenity = RoomAmenity(
|
||||||
name = request.name,
|
name = request.name,
|
||||||
category = request.category,
|
category = request.category,
|
||||||
iconKey = request.iconKey,
|
iconKey = request.iconKey
|
||||||
description = request.description
|
|
||||||
)
|
)
|
||||||
return roomAmenityRepo.save(amenity).toResponse()
|
return roomAmenityRepo.save(amenity).toResponse()
|
||||||
}
|
}
|
||||||
@@ -73,7 +72,6 @@ class RoomAmenities(
|
|||||||
amenity.name = request.name
|
amenity.name = request.name
|
||||||
amenity.category = request.category ?: amenity.category
|
amenity.category = request.category ?: amenity.category
|
||||||
amenity.iconKey = request.iconKey ?: amenity.iconKey
|
amenity.iconKey = request.iconKey ?: amenity.iconKey
|
||||||
amenity.description = request.description ?: amenity.description
|
|
||||||
return roomAmenityRepo.save(amenity).toResponse()
|
return roomAmenityRepo.save(amenity).toResponse()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -116,7 +114,6 @@ private fun RoomAmenity.toResponse(): AmenityResponse {
|
|||||||
id = id,
|
id = id,
|
||||||
name = name,
|
name = name,
|
||||||
category = category,
|
category = category,
|
||||||
iconKey = iconKey,
|
iconKey = iconKey
|
||||||
description = description
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -173,7 +173,6 @@ private fun RoomAmenity.toResponse(): com.android.trisolarisserver.controller.dt
|
|||||||
id = id,
|
id = id,
|
||||||
name = name,
|
name = name,
|
||||||
category = category,
|
category = category,
|
||||||
iconKey = iconKey,
|
iconKey = iconKey
|
||||||
description = description
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,14 +29,12 @@ data class RoomTypeResponse(
|
|||||||
data class AmenityUpsertRequest(
|
data class AmenityUpsertRequest(
|
||||||
val name: String,
|
val name: String,
|
||||||
val category: String? = null,
|
val category: String? = null,
|
||||||
val iconKey: String? = null,
|
val iconKey: String? = null
|
||||||
val description: String? = null
|
|
||||||
)
|
)
|
||||||
|
|
||||||
data class AmenityResponse(
|
data class AmenityResponse(
|
||||||
val id: UUID,
|
val id: UUID,
|
||||||
val name: String,
|
val name: String,
|
||||||
val category: String?,
|
val category: String?,
|
||||||
val iconKey: String?,
|
val iconKey: String?
|
||||||
val description: String?
|
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -29,9 +29,6 @@ class RoomAmenity(
|
|||||||
@Column(name = "icon_key")
|
@Column(name = "icon_key")
|
||||||
var iconKey: String? = null,
|
var iconKey: String? = null,
|
||||||
|
|
||||||
@Column
|
|
||||||
var description: String? = null,
|
|
||||||
|
|
||||||
@Column(name = "created_at", nullable = false, columnDefinition = "timestamptz")
|
@Column(name = "created_at", nullable = false, columnDefinition = "timestamptz")
|
||||||
val createdAt: OffsetDateTime = OffsetDateTime.now()
|
val createdAt: OffsetDateTime = OffsetDateTime.now()
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user