-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
I've created a query
const customerProducts = await knex.select([
'CustomerProduct.id',
'CustomerProduct.last_delivered AS lastDelivered',
'CustomerProduct.customer_id AS customerId',
'product.id',
'product.title',
'product.code',
])
.from('customer_products AS CustomerProduct')
.innerJoin('products AS product', 'CustomerProduct.product_id', 'product.id')
.where(whereClause)
.limit(limit)
.offset(offset);
knexnest(customerProducts).then(function (data) {
result = data;
});
return result;
When I try to execute this code I get this error:
TypeError: Cannot read property 'config' of undefined
I'm not sure why I should get it though.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels