28ed09b33d
The returning() on the update query can produce undefined when zero rows match. Added explicit 404 if updated is falsy. Co-Authored-By: Paperclip <noreply@paperclip.ing>