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(
|
||||
name = request.name,
|
||||
category = request.category,
|
||||
iconKey = request.iconKey,
|
||||
description = request.description
|
||||
iconKey = request.iconKey
|
||||
)
|
||||
return roomAmenityRepo.save(amenity).toResponse()
|
||||
}
|
||||
@@ -73,7 +72,6 @@ class RoomAmenities(
|
||||
amenity.name = request.name
|
||||
amenity.category = request.category ?: amenity.category
|
||||
amenity.iconKey = request.iconKey ?: amenity.iconKey
|
||||
amenity.description = request.description ?: amenity.description
|
||||
return roomAmenityRepo.save(amenity).toResponse()
|
||||
}
|
||||
|
||||
@@ -116,7 +114,6 @@ private fun RoomAmenity.toResponse(): AmenityResponse {
|
||||
id = id,
|
||||
name = name,
|
||||
category = category,
|
||||
iconKey = iconKey,
|
||||
description = description
|
||||
iconKey = iconKey
|
||||
)
|
||||
}
|
||||
|
||||
@@ -173,7 +173,6 @@ private fun RoomAmenity.toResponse(): com.android.trisolarisserver.controller.dt
|
||||
id = id,
|
||||
name = name,
|
||||
category = category,
|
||||
iconKey = iconKey,
|
||||
description = description
|
||||
iconKey = iconKey
|
||||
)
|
||||
}
|
||||
|
||||
@@ -29,14 +29,12 @@ data class RoomTypeResponse(
|
||||
data class AmenityUpsertRequest(
|
||||
val name: String,
|
||||
val category: String? = null,
|
||||
val iconKey: String? = null,
|
||||
val description: String? = null
|
||||
val iconKey: String? = null
|
||||
)
|
||||
|
||||
data class AmenityResponse(
|
||||
val id: UUID,
|
||||
val name: String,
|
||||
val category: String?,
|
||||
val iconKey: String?,
|
||||
val description: String?
|
||||
val iconKey: String?
|
||||
)
|
||||
|
||||
@@ -29,9 +29,6 @@ class RoomAmenity(
|
||||
@Column(name = "icon_key")
|
||||
var iconKey: String? = null,
|
||||
|
||||
@Column
|
||||
var description: String? = null,
|
||||
|
||||
@Column(name = "created_at", nullable = false, columnDefinition = "timestamptz")
|
||||
val createdAt: OffsetDateTime = OffsetDateTime.now()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user