Fix response of /api/get-sorted-users and /api/get-user-count

This commit is contained in:
Yang Luo 2023-07-23 14:46:38 +08:00
parent 7d7ca10481
commit 516f4b7569

View File

@ -510,8 +510,7 @@ func (c *ApiController) GetSortedUsers() {
return
}
c.Data["json"] = maskedUsers
c.ServeJSON()
c.ResponseOk(maskedUsers)
}
// GetUserCount
@ -538,8 +537,7 @@ func (c *ApiController) GetUserCount() {
return
}
c.Data["json"] = count
c.ServeJSON()
c.ResponseOk(count)
}
// AddUserkeys