diff options
author | 2021-09-01 11:13:01 +0200 | |
---|---|---|
committer | 2021-09-01 11:13:01 +0200 | |
commit | 55a9b8553fc85a48cc0fa76c2e6986e27e0b2f1c (patch) | |
tree | b8c64f8adb0f5c548ba1690c3cac9d87efa12c37 | |
parent | more updates (diff) | |
download | gotosocial-55a9b8553fc85a48cc0fa76c2e6986e27e0b2f1c.tar.xz |
lil move
-rw-r--r-- | internal/db/bundb/bundb.go | 3 |
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{ |