@@ -8,8 +8,6 @@ import (
|
||||
)
|
||||
|
||||
func List(c *gin.Context) {
|
||||
data := new(data.User)
|
||||
|
||||
// Get limit and offset from query
|
||||
limit, ok := c.GetQuery("limit")
|
||||
if !ok {
|
||||
@@ -34,7 +32,7 @@ func List(c *gin.Context) {
|
||||
}
|
||||
|
||||
// Get user list from search engine
|
||||
list, err := data.FastListUsers(limitNum, offsetNum)
|
||||
list, err := new(data.User).FastListUsers(limitNum, offsetNum)
|
||||
if err != nil {
|
||||
c.JSON(500, gin.H{"status": "failed list users from meilisearch"})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user