1
0

fix(cli): rename user project command

This commit is contained in:
kolaente
2023-05-10 22:37:37 +02:00
parent cade124799
commit 7d9e8bd150
3 changed files with 8 additions and 8 deletions

View File

@ -397,7 +397,7 @@ func TestProjectUsers(t *testing.T) {
s := db.NewSession()
defer s.Close()
all, err := ProjectAllUsers(s)
all, err := ListAllUsers(s)
assert.NoError(t, err)
assert.Len(t, all, 15)
})

View File

@ -106,8 +106,8 @@ outer:
return
}
// ProjectAllUsers returns all users
func ProjectAllUsers(s *xorm.Session) (users []*User, err error) {
// ListAllUsers returns all users
func ListAllUsers(s *xorm.Session) (users []*User, err error) {
err = s.Find(&users)
return
}