Skip to content

Commit

Permalink
Update db connection type
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiehewitt15 committed Aug 15, 2024
1 parent c5f3769 commit 0340247
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0340247

Please sign in to comment.