Skip to content

Commit

Permalink
optional and premium feature
Browse files Browse the repository at this point in the history
  • Loading branch information
milesstoetzner committed Mar 10, 2024
1 parent 7b25607 commit de1a9a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down Expand Up @@ -65,6 +68,8 @@ index.get('/', async (req, res) => {
DB_NAME,
DB_USERNAME,
DB_PASSWORD: anonymize(DB_PASSWORD),
FEATURE_OPTIONAL,
FEATURE_PREMIUM
})
});

Expand Down

0 comments on commit de1a9a0

Please sign in to comment.