remove slice pointers
This commit is contained in:
parent
543b39f822
commit
a774338ccd
3 changed files with 7 additions and 7 deletions
|
|
@ -26,7 +26,7 @@ func NewAdmAccountStore(db *pg.DB) *AdmAccountStore {
|
|||
}
|
||||
|
||||
// List applies a filter and returns paginated array of matching results and total count.
|
||||
func (s *AdmAccountStore) List(f auth.AccountFilter) (*[]auth.Account, int, error) {
|
||||
func (s *AdmAccountStore) List(f auth.AccountFilter) ([]auth.Account, int, error) {
|
||||
a := []auth.Account{}
|
||||
count, err := s.db.Model(&a).
|
||||
Apply(f.Filter).
|
||||
|
|
@ -34,7 +34,7 @@ func (s *AdmAccountStore) List(f auth.AccountFilter) (*[]auth.Account, int, erro
|
|||
if err != nil {
|
||||
return nil, 0, err
|
||||
}
|
||||
return &a, count, nil
|
||||
return a, count, nil
|
||||
}
|
||||
|
||||
// Create creates a new account.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue