res = db.getItem(id_items);
res.then(async (r) => {
console.log(r);
console.log(r['ord']['mod']);
if (r['ord'].mod == undefined ) {
r['ord'].mod = [];
r['ord']['mod'].push({
count_items: count_m
,
modif});
db.setItem(r['ord'], r['ord']['id']);
} else {
r['ord']['mod'].push({
count_items: count_m
,
modif}
);
db.setItem(data['ord'], r['ord']['id']);
}
});