from Account where id=?',[senderId]);
let receiverAmount=await pool.query('select balance from Account where id=?',[receiverId]);
SenderAmount=SenderAmount[0].balance;
receiverAmount=receiverAmount[0].balance;
console.log(SenderAmount,receiverAmount);
You should learn to debug.
Обсуждают сегодня