Skip to content

Commit

Permalink
fix: review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
saikatmitra91 committed May 22, 2024
1 parent 0f9e2dd commit 8308e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/spider-using-ts/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function createDatabase(
});
}

let connectionCache: Map<string, Promise<sqlite3.Database>> = new Map();
const connectionCache: Map<string, Promise<sqlite3.Database>> = new Map();

export async function getConnection (dbName:string): Promise<sqlite3.Database> {
if (connectionCache.get(dbName)) {
Expand Down

0 comments on commit 8308e78

Please sign in to comment.