This commit is contained in:
Liang Ding 2022-07-05 21:24:56 +08:00
parent 84bf22dd15
commit a3c3ec7b83
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 3 additions and 3 deletions

View file

@ -53,14 +53,14 @@ func getRepoSnapshots(c *gin.Context) {
}
page := arg["page"].(float64)
logs, pageCount, totalCount, err := model.GetRepoIndexLogs(int(page))
snapshots, pageCount, totalCount, err := model.GetRepoSnapshots(int(page))
if nil != err {
ret.Code = -1
ret.Msg = err.Error()
return
}
ret.Data = map[string]interface{}{
"logs": logs,
"snapshots": snapshots,
"pageCount": pageCount,
"totalCount": totalCount,
}