active server bugfix
- missing name sql param
This commit is contained in:
parent
2045a75d68
commit
433e4302c2
@ -63,6 +63,8 @@ var addCmd = &cobra.Command{
|
|||||||
Password: base64.StdEncoding.EncodeToString(ps),
|
Password: base64.StdEncoding.EncodeToString(ps),
|
||||||
})
|
})
|
||||||
cobra.CheckErr(err)
|
cobra.CheckErr(err)
|
||||||
|
|
||||||
|
fmt.Println("Server saved")
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -321,7 +321,7 @@ func (d *database) SetActiveServer(name string) error {
|
|||||||
|
|
||||||
ctx, cancel := d.timeout()
|
ctx, cancel := d.timeout()
|
||||||
defer cancel()
|
defer cancel()
|
||||||
_, err = d.ExecContext(ctx, update)
|
_, err = d.ExecContext(ctx, update, name)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user