Do not use array.includes to support some older versions of node
This commit is contained in:
parent
005941731b
commit
37b0ac9aec
3 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue