fix: we aren't pinning small files after uploading
This commit is contained in:
parent
a8f62fd666
commit
a48b10e50c
|
@ -497,6 +497,12 @@ func (s *S5API) smallFileUpload(jc jape.Context) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
err2 = s.accounts.PinByHash(newUpload.Hash, user)
|
||||||
|
if err2 != nil {
|
||||||
|
s.sendErrorResponse(jc, NewS5Error(ErrKeyFileUploadFailed, err2))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
cidStr, err2 := cid.ToString()
|
cidStr, err2 := cid.ToString()
|
||||||
if err2 != nil {
|
if err2 != nil {
|
||||||
s.sendErrorResponse(jc, NewS5Error(ErrKeyFileUploadFailed, err2))
|
s.sendErrorResponse(jc, NewS5Error(ErrKeyFileUploadFailed, err2))
|
||||||
|
|
Loading…
Reference in New Issue