Do not use array.includes to support some older versions of node

This commit is contained in:
Andris Reinman 2016-12-08 13:49:31 +02:00
parent 005941731b
commit 37b0ac9aec
3 changed files with 3 additions and 3 deletions

View file

@ -108,7 +108,7 @@ module.exports.get = (id, callback) => {
return callback(err);
}
let field = rows && rows[0] && tools.convertKeys(rows[0]) || false;
field.isGroup = module.exports.grouped.includes(field.type) || field.type === 'json';
field.isGroup = module.exports.grouped.indexOf(field.type) >= 0 || field.type === 'json';
return callback(null, field);
});
});