WiP Added location input.
This commit is contained in:
@@ -234,6 +234,9 @@ const postPublishInputs = async (req, res) => {
|
||||
const streetName = req.body.streetName || "";
|
||||
const longDescription = req.body.longDescription || "";
|
||||
|
||||
const locationLat = req.body.lat || null;
|
||||
const locationLong = req.body.lng || null;
|
||||
|
||||
realEstate.balcony = balcony;
|
||||
realEstate.elevator = elevator;
|
||||
realEstate.newBuilding = newBuilding;
|
||||
@@ -278,6 +281,9 @@ const postPublishInputs = async (req, res) => {
|
||||
|
||||
realEstate.longDescription = longDescription;
|
||||
|
||||
realEstate.locationLat = locationLat;
|
||||
realEstate.locationLong = locationLong;
|
||||
|
||||
await realEstate.save();
|
||||
|
||||
res.redirect(nextStepUrl);
|
||||
|
||||
Reference in New Issue
Block a user