mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-05 01:44:36 -04:00
Continue working on new admin pages
This commit is contained in:
parent
904bf1a50b
commit
d2aff9a46a
27 changed files with 669 additions and 539 deletions
|
@ -248,8 +248,8 @@ func CountUsers() int64 {
|
|||
}
|
||||
|
||||
// GetUsers returns given number of user objects with offset.
|
||||
func GetUsers(num, offset int) ([]User, error) {
|
||||
users := make([]User, 0, num)
|
||||
func GetUsers(num, offset int) ([]*User, error) {
|
||||
users := make([]*User, 0, num)
|
||||
err := x.Limit(num, offset).Where("type=0").Asc("id").Find(&users)
|
||||
return users, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue