gulpfile fix

indiachan-spamvector
Thomas Lynch 2 years ago
parent 132f40bac6
commit 4cb42bc560
  1. 2
      gulpfile.js
  2. 4
      package-lock.json

@ -154,7 +154,7 @@ async function wipe() {
const db = Mongo.db;
const collectionNames = ['accounts', 'bans', 'custompages', 'boards', 'captcha', 'files',
'modlog','news', 'posts', 'poststats', 'ratelimit', 'bypass'];
'modlog','news', 'posts', 'poststats', 'ratelimit', 'bypass', 'roles'];
for (const name of collectionNames) {
//drop collection so gulp reset can be run again. ignores error of dropping non existing collection first time
await db.dropCollection(name).catch(e => {});

4
package-lock.json generated

@ -1,12 +1,12 @@
{
"name": "jschan",
"version": "0.3.2",
"version": "0.4.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "jschan",
"version": "0.3.2",
"version": "0.4.0",
"license": "AGPL-3.0-only",
"dependencies": {
"@fatchan/express-fileupload": "^1.3.1",

Loading…
Cancel
Save