Fix translation.

This commit is contained in:
Gucheng Wang
2021-12-18 11:42:56 +08:00
parent 318cf52b33
commit 16cc64f08d
9 changed files with 137 additions and 4 deletions

View File

@ -39,7 +39,7 @@ func (c *ApiController) GetSyncers() {
} else {
limit := util.ParseInt(limit)
paginator := pagination.SetPaginator(c.Ctx, limit, int64(object.GetSyncerCount(owner)))
syncers := object.GetMaskedSyncers(object.GetPaginationSyncers(owner, paginator.Offset(), limit))
syncers := object.GetPaginationSyncers(owner, paginator.Offset(), limit)
c.ResponseOk(syncers, paginator.Nums())
}
}
@ -53,7 +53,7 @@ func (c *ApiController) GetSyncers() {
func (c *ApiController) GetSyncer() {
id := c.Input().Get("id")
c.Data["json"] = object.GetMaskedSyncer(object.GetSyncer(id))
c.Data["json"] = object.GetSyncer(id)
c.ServeJSON()
}