Compare commits

...

2 Commits

2 changed files with 5 additions and 1 deletions

View File

@ -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
}

View File

@ -7,6 +7,7 @@ type ImportStatus string
const (
ImportStatusQueued ImportStatus = "queued"
ImportStatusProcessing ImportStatus = "processing"
ImportStatusCompleted ImportStatus = "completed"
)
func init() {