From de1a9a0b5270874ad9da71cdb9c6c30f5e8531aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miles=20St=C3=B6tzner?= Date: Sun, 10 Mar 2024 09:55:38 +0100 Subject: [PATCH] optional and premium feature --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index 20e16e5..985d79f 100644 --- a/index.js +++ b/index.js @@ -20,6 +20,9 @@ const DB_PASSWORD = process.env.DB_PASSWORD const DB_ADDRESS = process.env.DB_ADDRESS const DB_PORT = process.env.DB_PORT +const FEATURE_OPTIONAL = process.env.FEATURE_OPTIONAL === "true" +const FEATURE_PREMIUM = process.env.FEATURE_PREMIUM === "true" + let sequelize; if (DB_DIALECT === 'memory') { @@ -65,6 +68,8 @@ index.get('/', async (req, res) => { DB_NAME, DB_USERNAME, DB_PASSWORD: anonymize(DB_PASSWORD), + FEATURE_OPTIONAL, + FEATURE_PREMIUM }) });