Fixing bug where the Mongo DB URL wasn't being picked up by the billing script (#15378)

This commit is contained in:
Arpit Mohan 2022-07-22 14:41:02 +02:00 committed by GitHub
parent 692f1a5606
commit 4674be719f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,12 +3,12 @@ const { DateTime } = require("luxon");
const cliProgress = require("cli-progress");
var args = require("minimist")(process.argv.slice(2));
const MONGODB_URL = args.mongoUrl || process.env.APPSMITH_MONGODB_URI;
const SESSION_PRICE = args.sessionPrice || 0.3;
const PRICE_CAP_FOR_USER = args.priceCap || 15;
let BILL = {};
async function run() {
const MONGODB_URL = args.mongoUrl || process.env.APPSMITH_MONGODB_URI;
if (MONGODB_URL == undefined || MONGODB_URL.trim() === "") {
console.log(`
Did you forget to specify the mandatory parameter MongoDB URL?