Dropzone edit opction adadded.
This commit is contained in:
@@ -202,8 +202,8 @@ const getPublishInputs = async (req, res) => {
|
||||
additionalInputValues,
|
||||
validate: validate,
|
||||
email,
|
||||
locationLat: locationLat || 0,
|
||||
locationLong: locationLong || 0,
|
||||
locationLat, //: locationLat || 0,
|
||||
locationLong, //: locationLong || 0,
|
||||
editingRealEstate,
|
||||
realEstatePhotosUrls
|
||||
});
|
||||
@@ -223,7 +223,9 @@ const postPublishInputs = async (req, res) => {
|
||||
return;
|
||||
}
|
||||
|
||||
const editingRealEstate = req.body.editingRealEstate;
|
||||
const editingRealEstate = req.body.editingRealEstate === "true";
|
||||
|
||||
console.log("Editing real estate:", editingRealEstate);
|
||||
|
||||
const nextStepPage = editingRealEstate
|
||||
? req.query.nextStep || "/uspjesnaizmjena"
|
||||
@@ -294,6 +296,7 @@ const postPublishInputs = async (req, res) => {
|
||||
//Image urls are stored in new table
|
||||
const imageUrls =
|
||||
req.body.imageUrls.split("|").filter(url => url !== "") || [];
|
||||
|
||||
const imageUrlsData = imageUrls.map(url => {
|
||||
return {
|
||||
kiviAdId: kiviOriginal.kiviAdId,
|
||||
|
||||
Reference in New Issue
Block a user