Fix the store item json response code

This commit is contained in:
Christopher Baines 2025-10-27 08:05:10 +00:00
parent 6e25a64815
commit 7d17e56839

View file

@ -652,7 +652,9 @@
(match (with-resource-from-pool (connection-pool) conn (match (with-resource-from-pool (connection-pool) conn
(select-derivation-source-file-by-store-path conn filename)) (select-derivation-source-file-by-store-path conn filename))
(() (()
(render-json '((error . "store item not found")))) (render-json
'((error . "store item not found"))
#:code 404))
((id) ((id)
(render-json (render-json
`((derivation-source-file `((derivation-source-file