id: req.params.businessId,
userId: req.decoded.userId,
}please guy how do i do this with sql. is there a way i can refer to the businessId and userId all inside a table?
for example:
"SELECT * FROM rquests WHERE userId = $1"how do i put the where businessId into that with sql???
Why u using JavaScript syntax into sql
are they in the same table ?
Обсуждают сегодня