From febba81f0e7f149a8b06f36b98226357edf2824d Mon Sep 17 00:00:00 2001 From: Varun Date: Thu, 27 Mar 2025 12:24:03 +0530 Subject: [PATCH] changes --- src/controllers/tanksController.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 35c4d24f..c875b36a 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -2800,6 +2800,7 @@ exports.motorAction = async (req, reply) => { { role: "Staff", name: users.staff.staff.find(staff => staff.phone === phone).name, phone } : null; if (!loggedInUser) return reply.status(404).send({ error: "User not found" }); + console.log(loggedInUser) const fcmToken = users.fcmIds ? users.fcmIds.filter(id => id) : []; const receiverTank = await Tank.findOne({ customerId, tankName: req.body.to, tankLocation: req.body.to_type.toLowerCase() });