do not create duplicate db connection pools in the old backend

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2023-09-14 14:58:16 +02:00
parent 8a6a66f621
commit 05508a9757
5 changed files with 26 additions and 15 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ function makeCreateEnv(config: Config) {
});
const databaseManager = DatabaseManager.fromConfig(config, { logger: root });
const cacheManager = CacheManager.fromConfig(config);
const taskScheduler = TaskScheduler.fromConfig(config);
const taskScheduler = TaskScheduler.fromConfig(config, { databaseManager });
const identity = DefaultIdentityClient.create({
discovery,
});