Каждый инпут надо оборачивать.
for(var i=0;i<fields.length;i++){
if(app.can('manufacturer_order__edit_field_' + fields[i].name){
app.createHtmlTag('input', {name: fields[i].name, value: fields[i].value, class: 'bla-bla'}).insertTo(whereInsert);
}
}
let items = await new Promise(resolve => {
redisClient.lrange('items', 0, 10, (error, items) => {
if(!error) {
resolve(items);
}else{
throw new Error(error);
}
});
});