From cd158b168d024289149cebb253b9af87d8f37a21 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Tue, 2 Aug 2022 10:15:09 -0700 Subject: [PATCH] open db readonly --- src/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.js b/src/server.js index 169d1d2..b26e4ba 100644 --- a/src/server.js +++ b/src/server.js @@ -10,7 +10,7 @@ if (fs.existsSync('.env.local')) { } const ALL_CONTRACTS = require('../data/contracts'); -const db = new Database('./storage/sqlite.db'); +const db = new Database('./storage/sqlite.db', {readonly: true}); const app = express(); const port = process.env.PORT || 3000;