Set default/template config in gulp wipe task

indiachan-spamvector
Thomas Lynch 2 years ago
parent f656a97513
commit 116a102109
  1. 3
      gulpfile.js

@ -154,6 +154,9 @@ async function ips() {
async function wipe() {
const db = Mongo.db;
const defaultConfig = require(__dirname+'/configs/template.js.example');
await Mongo.setConfig(defaultConfig);
const collectionNames = ['accounts', 'bans', 'custompages', 'boards', 'captcha', 'files',
'modlog','news', 'posts', 'poststats', 'ratelimit', 'bypass', 'roles'];
for (const name of collectionNames) {

Loading…
Cancel
Save