small mistake in boards customflags default being [] instead of {}, but shouldnt affect much since Object.entries will return the same for them and adding/deleting will put correct thing

jschan
Thomas Lynch 3 years ago
parent 9f96608fca
commit 092b3876f7
  1. 2
      migrations/0.1.1.js
  2. 2
      models/forms/create.js

@ -19,7 +19,7 @@ module.exports = async(db, redis) => {
}); });
await db.collection('boards').updateMany({}, { await db.collection('boards').updateMany({}, {
'$set': { '$set': {
'flags': [], 'flags': {},
'settings.customFlags': false, 'settings.customFlags': false,
}, },
'$rename': { '$rename': {

@ -42,13 +42,13 @@ module.exports = async (req, res, next) => {
owner, owner,
tags, tags,
'banners': [], 'banners': [],
'flags': [],
'sequence_value': 1, 'sequence_value': 1,
'pph': 0, 'pph': 0,
'ppd': 0, 'ppd': 0,
'ips': 0, 'ips': 0,
'lastPostTimestamp': null, 'lastPostTimestamp': null,
'webring': false, 'webring': false,
'flags': {},
'settings': { 'settings': {
name, name,
description, description,

Loading…
Cancel
Save