From 1245e09111fe29f02f7d6fa0a6edb7341322f56e Mon Sep 17 00:00:00 2001 From: Shibi Chakkaravarthy Date: Sat, 18 Apr 2026 14:45:28 +0530 Subject: [PATCH] createdOn vs recorded_at issue fixed --- controllers/location.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/location.controller.js b/controllers/location.controller.js index d6cbefc..dd9cf47 100644 --- a/controllers/location.controller.js +++ b/controllers/location.controller.js @@ -11,7 +11,7 @@ export const createLocationController = async (req, res) => { const dbPayload = { battery: location.battery.level, coordinates: location.coords, - createdOn: location.recorded_at, + recorded_at: location.recorded_at, }; const uploaded = await createLocation({ ...dbPayload, user: user?.id }); console.log("BG LOCATION DB DOC", uploaded, user);