fix: bad response for existing file

This commit is contained in:
Derrick Hammer 2024-01-18 13:53:04 -05:00
parent 17fdad7d07
commit 8161d36f0e
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 1 deletions

View File

@ -167,7 +167,9 @@ func (h *HttpHandler) SmallFileUpload(jc jape.Context) {
return return
} }
jc.Encode(map[string]string{"hash": cidStr}) jc.Encode(&SmallUploadResponse{
CID: cidStr,
})
return return
} }