mirror of
https://github.com/juanfont/headscale.git
synced 2026-07-17 16:36:02 +00:00
db, sqliteconfig: consolidate query and config helpers
This commit is contained in:
parent
b56326427c
commit
55b9e3cfda
13 changed files with 232 additions and 325 deletions
|
|
@ -135,7 +135,7 @@ var setPolicy = &cobra.Command{
|
|||
}
|
||||
defer d.Close()
|
||||
|
||||
users, err := d.ListUsers()
|
||||
users, err := d.ListUsers(nil)
|
||||
if err != nil {
|
||||
return fmt.Errorf("loading users for policy validation: %w", err)
|
||||
}
|
||||
|
|
@ -194,7 +194,7 @@ var checkPolicy = &cobra.Command{
|
|||
}
|
||||
defer d.Close()
|
||||
|
||||
users, err := d.ListUsers()
|
||||
users, err := d.ListUsers(nil)
|
||||
if err != nil {
|
||||
return fmt.Errorf("loading users: %w", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue