commit 55a9b8553fc85a48cc0fa76c2e6986e27e0b2f1c
parent 7b01304dac37524643eca389af07337928d2b815
Author: tsmethurst <tobi.smethurst@protonmail.com>
Date: Wed, 1 Sep 2021 11:13:01 +0200
lil move
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/internal/db/bundb/bundb.go b/internal/db/bundb/bundb.go
@@ -155,11 +155,12 @@ func NewBunDBService(ctx context.Context, c *config.Config, log *logrus.Logger)
conn.RegisterModel(t)
}
- accounts := &accountDB{config: c, conn: conn, cache: cache.NewAccountCache()}
if err := doMigration(ctx, conn.DB, log); err != nil {
return nil, fmt.Errorf("db migration error: %s", err)
}
+ accounts := &accountDB{config: c, conn: conn, cache: cache.NewAccountCache()}
+
ps := &bunDBService{
Account: accounts,
Admin: &adminDB{