libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit da28f823688911eb41ca004ba637f0cb8f171f1d
parent 5276f88d7f268f3fa14fb22f5731af2087c24c92
Author: ms <ms@taler.net>
Date:   Mon, 20 Mar 2023 16:23:16 +0100

addressing #7769

Diffstat:
Mnexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt @@ -557,7 +557,9 @@ val nexusApp: Application.() -> Unit = { (NexusScheduledTasksTable.resourceId eq accountId) }.firstOrNull() - oldSchedTask?.delete() + if (oldSchedTask == null) + throw notFound("Task $taskId is not found.") + oldSchedTask.delete() } call.respond(object {}) }