Forgot to connect to the DB in the admin tool
This commit is contained in:
@@ -36,6 +36,7 @@ func (cmd *AddToken) Run() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
tx.Commit(ctx)
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -54,7 +55,10 @@ var cli Cli
|
||||
|
||||
func main() {
|
||||
ctx := kong.Parse(&cli)
|
||||
//db.Connect(cli.Db)
|
||||
if err := db.Connect(cli.Db); err != nil {
|
||||
println(err.Error())
|
||||
os.Exit(0)
|
||||
}
|
||||
println(ctx.Command())
|
||||
if err := ctx.Run(); err != nil {
|
||||
println(err.Error())
|
||||
|
||||
Reference in New Issue
Block a user