small typographical and minor changes

merge-requests/208/head
fatchan 5 years ago
parent ddfe6241b5
commit 392d2c8199
  1. 18
      helpers/build.js
  2. 2
      models/forms/makepost.js
  3. 6
      redis.js

@ -31,9 +31,9 @@ module.exports = {
...options,
threads,
}, {
'name': `/${options.board._id}/catalog.json`,
'data': threads
});
'name': `/${options.board._id}/catalog.json`,
'data': threads
});
const end = process.hrtime(start);
console.log(timeDiffString(label, end));
return html;
@ -53,9 +53,9 @@ module.exports = {
...options,
thread,
}, {
'name': `/${options.board._id}/thread/${options.threadId}.json`,
'data': thread
});
'name': `/${options.board._id}/thread/${options.threadId}.json`,
'data': thread
});
const end = process.hrtime(start);
console.log(timeDiffString(label, end));
return html;
@ -108,9 +108,9 @@ module.exports = {
maxPage,
page: i,
}, {
'name': `/${options.board._id}/${i === 1 ? 'index' : i}.json`,
'data': pageThreads
})
'name': `/${options.board._id}/${i === 1 ? 'index' : i}.json`,
'data': pageThreads
})
);
}
await Promise.all(buildArray);

@ -116,7 +116,7 @@ module.exports = async (req, res, next) => {
'ip': res.locals.ip,
'reason': 'post word filter auto ban',
'board': res.locals.board._id,
'post': null,
'posts': null,
'issuer': 'system', //what should i call this
'date': banDate,
'expireAt': banExpiry

@ -9,10 +9,8 @@ module.exports = {
redisClient: client,
//get a value with key
get: async (key) => {
return client.get(key).then(res => {
return JSON.parse(res);
});
get: (key) => {
return client.get(key).then(res => { return JSON.parse(res) });
},
//set a value on key

Loading…
Cancel
Save