Compare commits
2 Commits
0a85711ead
...
5b2a86275f
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | 5b2a86275f | |
Derrick Hammer | 7665937196 |
|
@ -1166,7 +1166,10 @@ func (s *S5API) accountPinStatus(jc jape.Context) {
|
|||
meta, err := s._import.GetImport(jc.Request.Context(), decodedCid.Hash.HashBytes())
|
||||
|
||||
if err != nil {
|
||||
s.sendErrorResponse(jc, NewS5Error(ErrKeyResourceNotFound, err))
|
||||
jc.Encode(&AccountPinStatusResponse{
|
||||
Status: models.ImportStatusCompleted,
|
||||
Progress: 100,
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ type ImportStatus string
|
|||
const (
|
||||
ImportStatusQueued ImportStatus = "queued"
|
||||
ImportStatusProcessing ImportStatus = "processing"
|
||||
ImportStatusCompleted ImportStatus = "completed"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
|
Loading…
Reference in New Issue