fixed item titles

This commit is contained in:
muerwre 2019-03-07 12:35:47 +07:00
parent e5d60f2e33
commit 364f6b165e
4 changed files with 8 additions and 6 deletions

View file

@ -8,7 +8,7 @@ module.exports = async (req, res) => {
const owner = await User.findOne({ _id: id, token }).populate('routes');
if (!owner) return res.send({ success: false, reason: 'unauthorized', id, token });
const title = parseString(body.title, 32);
const title = parseString(body.title, 64);
const address = parseString(body.address, 32);
const route = parseRoute(body.route);
const stickers = parseStickers(body.stickers);