summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar tsmethurst <tobi.smethurst@protonmail.com>2021-09-01 11:13:01 +0200
committerLibravatar tsmethurst <tobi.smethurst@protonmail.com>2021-09-01 11:13:01 +0200
commit55a9b8553fc85a48cc0fa76c2e6986e27e0b2f1c (patch)
treeb8c64f8adb0f5c548ba1690c3cac9d87efa12c37
parentmore updates (diff)
downloadgotosocial-55a9b8553fc85a48cc0fa76c2e6986e27e0b2f1c.tar.xz
lil move
-rw-r--r--internal/db/bundb/bundb.go3
1 files changed, 2 insertions, 1 deletions
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{