From 55a9b8553fc85a48cc0fa76c2e6986e27e0b2f1c Mon Sep 17 00:00:00 2001 From: tsmethurst Date: Wed, 1 Sep 2021 11:13:01 +0200 Subject: [PATCH] lil move --- internal/db/bundb/bundb.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/db/bundb/bundb.go b/internal/db/bundb/bundb.go index 2a622020b..f2e83887d 100644 --- 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{