fix: remove env variable check

pull/680/head
adripo 3 years ago committed by GitHub
parent 703848e4e5
commit 3f15f3bcaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -147,16 +147,11 @@ if (fs.existsSync('version.json')) {
// don't overwrite config if it already happened.. NOT
// let alreadyWritten = db.get('configWriteFlag').value();
let writeConfigMode = process.env.write_ytdl_config;
// checks if config exists, if not, a config is auto generated
config_api.configExistsCheck();
if (writeConfigMode) {
setAndLoadConfig();
} else {
loadConfig();
}
setAndLoadConfig();
app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.json());

Loading…
Cancel
Save