Remove amenity description field
All checks were successful
build-and-deploy / build-deploy (push) Successful in 27s

This commit is contained in:
androidlover5842
2026-01-27 04:37:19 +05:30
parent eb0b99f55a
commit 19153900fd
4 changed files with 5 additions and 14 deletions

View File

@@ -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
)
}

View File

@@ -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
)
}

View File

@@ -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?
)

View File

@@ -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()
)