Not crashing without configs anymore
This commit is contained in:
15
config/defaults/lottery.js
Normal file
15
config/defaults/lottery.js
Normal file
@@ -0,0 +1,15 @@
|
||||
try {
|
||||
module.exports = require("../env/lottery.config");
|
||||
} catch (e) {
|
||||
console.error(
|
||||
"You haven't defined lottery-configs, you sure you want to continue without them?"
|
||||
);
|
||||
module.exports = {
|
||||
name: "NAME MISSING",
|
||||
phone: "PHONE_MISSING",
|
||||
price: 10,
|
||||
message: "INSERT MESSAGE",
|
||||
date: 5,
|
||||
hours: 15
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user