|
|
@ -2560,10 +2560,11 @@ exports.getOrdersByInstallationId = async (req, reply) => {
|
|
|
|
return reply.send({
|
|
|
|
return reply.send({
|
|
|
|
status_code: 200,
|
|
|
|
status_code: 200,
|
|
|
|
message: "Orders fetched successfully",
|
|
|
|
message: "Orders fetched successfully",
|
|
|
|
data: {
|
|
|
|
data: customers
|
|
|
|
customers,
|
|
|
|
// data: {
|
|
|
|
// orders: ordersWithSensors
|
|
|
|
// customers,
|
|
|
|
}
|
|
|
|
// // orders: ordersWithSensors
|
|
|
|
|
|
|
|
// }
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
} catch (err) {
|
|
|
|
} catch (err) {
|
|
|
|