createdOn vs recorded_at issue fixed
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user