Skip to content

Commit

Permalink
fix(server): wrong account db name
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Sep 29, 2023
1 parent 97f64a5 commit db2564c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/internal/app/repo.go
Expand Up @@ -52,12 +52,12 @@ func initReposAndGateways(ctx context.Context, conf *config.Config, debug bool)

txAvailable := mongox.IsTransactionAvailable(conf.DB)

accountRepos, err := accountmongo.New(ctx, client, databaseName, txAvailable, accountRepoCompat)
accountRepos, err := accountmongo.New(ctx, client, accountDatabase, txAvailable, accountRepoCompat)
if err != nil {
log.Fatalf("Failed to init mongo: %+v\n", err)
}

repos, err := mongorepo.NewWithExtensions(ctx, client.Database(accountDatabase), accountRepos, txAvailable, conf.Ext_Plugin)
repos, err := mongorepo.NewWithExtensions(ctx, client.Database(databaseName), accountRepos, txAvailable, conf.Ext_Plugin)
if err != nil {
log.Fatalf("Failed to init mongo: %+v\n", err)
}
Expand Down

0 comments on commit db2564c

Please sign in to comment.