changes in motordata

master^2
Varun 8 months ago
parent ec0ed4ab75
commit ed9a155849

@ -416,18 +416,7 @@ exports.getTankmotordata = async (req, reply) => {
const recordTime = moment(record.startTime, "DD-MMM-YYYY - HH:mm").toDate();
return recordTime >= start && recordTime <= end;
});
// Query the MotorData collection
// const motorDataDocs = await MotorData.find({
// customerId,
// $or: [
// {
// startTime: { $gte: startISODate, $lte: stopISODate }, // Date-based comparison
// },
// {
// startTime: { $gte: startStringDate, $lte: stopStringDate }, // String-based comparison
// },
// ],
// }).exec();
reply.send({
status_code: 200,

Loading…
Cancel
Save