Open elzasimoes opened 4 years ago
(node:5040) UnhandledPromiseRejectionWarning: Error: Undefined binding(s) detected when compiling SELECT. Undefined column(s): [ong_id] query: select * from incidents where ong_id = ?
incidents
ong_id
const incidents = await connection('incidents') .where('ong_id', ong_id) .select('*');
Just pass a valid authorization and it works
(node:5040) UnhandledPromiseRejectionWarning: Error: Undefined binding(s) detected when compiling SELECT. Undefined column(s): [ong_id] query: select * from
incidents
whereong_id
= ?