active server bugfix

- missing name sql param
This commit is contained in:
jake 2025-06-19 15:13:16 -04:00
parent 2045a75d68
commit 433e4302c2
2 changed files with 3 additions and 1 deletions

View File

@ -63,6 +63,8 @@ var addCmd = &cobra.Command{
Password: base64.StdEncoding.EncodeToString(ps),
})
cobra.CheckErr(err)
fmt.Println("Server saved")
},
}

View File

@ -321,7 +321,7 @@ func (d *database) SetActiveServer(name string) error {
ctx, cancel := d.timeout()
defer cancel()
_, err = d.ExecContext(ctx, update)
_, err = d.ExecContext(ctx, update, name)
return err
}