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({}, {
'$set': {
'flags': [],
'flags': {},
'settings.customFlags': false,
},
'$rename': {

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

Loading…
Cancel
Save