small typographical and minor changes

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

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

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

Loading…
Cancel
Save