const response = await OrderDal.findAll({
where: { buyerId: userId }
attributes: { exclude: ['outcomeId', 'programId'] },
include: [
{
model: User,
as: 'buyerOrders',
attributes: ['name'],
},
{
model: User,
as: 'sellerOrders',
attributes: ['name'],
},
{
model: Outcome,
attributes: ['title'],
},
{
model: ProgramOrder,
as: 'programOrders',
attributes: ['orderId', 'totalUnitsValue', 'CPO', 'PPO'],…
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)