Skip to content

Commit

Permalink
Fix response of /api/get-sorted-users and /api/get-user-count
Browse files Browse the repository at this point in the history
  • Loading branch information
hsluoyz committed Jul 23, 2023
1 parent 7d7ca10 commit 516f4b7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions controllers/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,7 @@ func (c *ApiController) GetSortedUsers() {
return
}

c.Data["json"] = maskedUsers
c.ServeJSON()
c.ResponseOk(maskedUsers)
}

// GetUserCount
Expand All @@ -538,8 +537,7 @@ func (c *ApiController) GetUserCount() {
return
}

c.Data["json"] = count
c.ServeJSON()
c.ResponseOk(count)
}

// AddUserkeys
Expand Down

0 comments on commit 516f4b7

Please sign in to comment.