Return only property code in code lookup
All checks were successful
build-and-deploy / build-deploy (push) Successful in 34s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 34s
This commit is contained in:
@@ -39,7 +39,6 @@ data class PropertyResponse(
|
||||
)
|
||||
|
||||
data class PropertyCodeResponse(
|
||||
val propertyId: UUID,
|
||||
val code: String
|
||||
)
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ class Properties(
|
||||
val property = propertyRepo.findById(propertyId).orElseThrow {
|
||||
ResponseStatusException(HttpStatus.NOT_FOUND, "Property not found")
|
||||
}
|
||||
return PropertyCodeResponse(propertyId = property.id!!, code = property.code)
|
||||
return PropertyCodeResponse(code = property.code)
|
||||
}
|
||||
|
||||
@GetMapping("/properties/{propertyId}/users")
|
||||
|
||||
Reference in New Issue
Block a user