hot fix child transactiopns
This commit is contained in:
@@ -3,6 +3,7 @@ package space.luminic.budgerapp.controllers
|
||||
import kotlinx.coroutines.reactor.awaitSingle
|
||||
import kotlinx.coroutines.reactor.awaitSingleOrNull
|
||||
import org.bson.Document
|
||||
import org.slf4j.LoggerFactory
|
||||
import org.springframework.http.HttpStatus
|
||||
import org.springframework.http.ResponseEntity
|
||||
import org.springframework.web.bind.annotation.*
|
||||
@@ -24,6 +25,8 @@ class SpaceController(
|
||||
private val recurrentService: RecurrentService
|
||||
) {
|
||||
|
||||
private val log = LoggerFactory.getLogger(SpaceController::class.java)
|
||||
|
||||
|
||||
data class SpaceCreateDTO(
|
||||
val name: String,
|
||||
@@ -94,6 +97,7 @@ class SpaceController(
|
||||
|
||||
@GetMapping("/{spaceId}/budgets/{id}")
|
||||
suspend fun getBudget(@PathVariable spaceId: String, @PathVariable id: String): BudgetDTO? {
|
||||
log.info("Getting budget for spaceId=$spaceId, id=$id")
|
||||
spaceService.isValidRequest(spaceId)
|
||||
return financialService.getBudget(spaceId, id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user