I tried to call db/delrow with (db/delrow {:id id} but it returned a 500 error. And when I looked into it it sems to be a “not supported on type: java.lang.Integer” error.
If that is what you meant.
A possibly helpful note for the future: instead of the if you had in there before, you could do:
user=> (get-in {} [:path-params :id] 2)
2
Both get and get-in have an arity that accepts a default value to return if the requested key is not present. Note that a value of nil is considered “present”:
(but you’re not going to get nil from a query/path/form parameter – you’ll either get the actual value, a string unless you have any coercion in place, or you won’t get the parameter at all)