Skip to content

Commit

Permalink
Close db when finished
Browse files Browse the repository at this point in the history
  • Loading branch information
ezynda3 committed Mar 10, 2024
1 parent ed0970a commit 970ad00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export const getContractInformation = async (
chainId,
})

sqlite.close()
return {
...contractData,
address,
Expand Down
2 changes: 2 additions & 0 deletions src/routes/diamond/[address]/json/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ export const GET: RequestHandler = async ({ params, url }) => {
},
})

sqlite.close()

return json({
chain: network,
diamond,
Expand Down

0 comments on commit 970ad00

Please # to comment.