mirror of
https://github.com/goharbor/harbor
synced 2024-09-21 06:18:25 +00:00
Merge pull request #14646 from steven-zou/fix/value_out_of_range_2.1
CHERRY-PICK: fix(jobservice): value out of range (#14634)
This commit is contained in:
commit
696f3da304
|
@ -143,7 +143,7 @@ func (bm *basicManager) GetJobs(q *query.Parameter) ([]*job.Stats, int64, error)
|
|||
return nil, 0, errors.New("malform scan results")
|
||||
}
|
||||
|
||||
nextCur, err := strconv.ParseUint(string(values[0].([]byte)), 10, 8)
|
||||
nextCur, err := strconv.ParseInt(string(values[0].([]byte)), 10, 64)
|
||||
if err != nil {
|
||||
return nil, 0, err
|
||||
}
|
||||
|
@ -166,7 +166,7 @@ func (bm *basicManager) GetJobs(q *query.Parameter) ([]*job.Stats, int64, error)
|
|||
}
|
||||
}
|
||||
|
||||
return results, int64(nextCur), nil
|
||||
return results, nextCur, nil
|
||||
}
|
||||
|
||||
// GetPeriodicExecution is implementation of Manager.GetPeriodicExecution
|
||||
|
|
Loading…
Reference in New Issue
Block a user