mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #4685 from ioito/hotfix/qx-next-marker
fix: next marker format
This commit is contained in:
@@ -574,10 +574,7 @@ func ListItems(manager IModelManager, ctx context.Context, userCred mcclient.Tok
|
||||
}
|
||||
nextMarker := ""
|
||||
if int64(len(retList)) > limit {
|
||||
markerObj, _ := retList[limit].Get(pagingConf.MarkerField)
|
||||
if markerObj != nil {
|
||||
nextMarker = fmt.Sprintf("%s", markerObj)
|
||||
}
|
||||
nextMarker, _ = retList[limit].GetString(pagingConf.MarkerField)
|
||||
retList = retList[:limit]
|
||||
}
|
||||
retResult := modulebase.ListResult{
|
||||
|
||||
Reference in New Issue
Block a user