Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
dabliuw22 committed May 10, 2024
1 parent 389bcf3 commit 1bb1cab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class SqlProductRepository private constructor() :
val result = fold(
block = { command(delById(id)).await() },
recover = { error: Jdbc.Companion.SqlException -> raise(DeleteProductException(error.message)) },
catch = { _ -> raise(CreateProductException()) },
catch = { _ -> raise(DeleteProductException()) },
transform = ::identity
)
id.wasDeleted(result)
Expand Down

0 comments on commit 1bb1cab

Please sign in to comment.