fix: if not a manifest, call pinEntity directly
This commit is contained in:
parent
a5c1356847
commit
fdfffb897c
|
@ -1027,6 +1027,12 @@ func (s *S5API) accountPin(jc jape.Context) {
|
||||||
if isCidManifest(decodedCid) {
|
if isCidManifest(decodedCid) {
|
||||||
s.accountPinManifest(jc, userID, decodedCid)
|
s.accountPinManifest(jc, userID, decodedCid)
|
||||||
return
|
return
|
||||||
|
} else {
|
||||||
|
err = s.pinEntity(jc.Request.Context(), userID, decodedCid)
|
||||||
|
if err != nil {
|
||||||
|
s.sendErrorResponse(jc, NewS5Error(ErrKeyStorageOperationFailed, err))
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue