From 034024762dc2b5da3a7eef8a412509a4af7ee688 Mon Sep 17 00:00:00 2001 From: Jamie Hewitt Date: Thu, 15 Aug 2024 09:51:54 +0100 Subject: [PATCH] Update db connection type --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index cf3c47c63..3b001ff9c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -80,8 +80,8 @@ if (!config) { let node: OceanP2P = null let indexer = null let provider = null -// If there is no DB connection only the nonce database will be available -const dbconn: Database | null = await new Database(config.dbConfig) +// If there is no DB URL only the nonce database will be available +const dbconn: Database = await new Database(config.dbConfig) if (!config.dbConfig?.url) { // once we create a database instance, we check the environment and possibly add the DB transport