VV
Size: a a a
VV
II
await pool.query(QUERIES.INSERT_INTO_USERS + `VALUES(${values.join(',')}) RETURNING ID`, (err, res) => {
if (err) {
console.log("err.stack: ", err.stack);
} else {
id = res.rows[0].id; // id'ник возвращает, не undefined
}
});
CM
await pool.query(QUERIES.INSERT_INTO_USERS + `VALUES(${values.join(',')}) RETURNING ID`, (err, res) => {
if (err) {
console.log("err.stack: ", err.stack);
} else {
id = res.rows[0].id; // id'ник возвращает, не undefined
}
});
CM
II
const id = await pool.query(QUERIES.INSERT_INTO_USERS + `VALUES(${values.join(',')}) RETURNING ID`, (err, res) => {
return res.rows[0].id;
});
console.log('id: ', id)
CM
const id = await pool.query(QUERIES.INSERT_INTO_USERS + `VALUES(${values.join(',')}) RETURNING ID`, (err, res) => {
return res.rows[0].id;
});
console.log('id: ', id)
CM
II
V
М
V
Error: spawn babel ENOENT
прям все не работает?RZ
II
V
Error: .presets[0][1] must be an object, false, or undefined
DT
V
module.exports = {
presets: presets,
plugins: plugins,
};
DT
V
DT
DT