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 return
} }
c.Data["json"] = maskedUsers c.ResponseOk(maskedUsers)
c.ServeJSON()
} }
// GetUserCount // GetUserCount
@@ -538,8 +537,7 @@ func (c *ApiController) GetUserCount() {
return return
} }
c.Data["json"] = count c.ResponseOk(count)
c.ServeJSON()
} }
// AddUserkeys // AddUserkeys