Skip to content

Commit

Permalink
Merge branch 'feature/onboarding' of https://github.com/EventoryHost/…
Browse files Browse the repository at this point in the history
…Eventory-backend into feature/onboarding
  • Loading branch information
QuarterColon committed Aug 19, 2024
2 parents a8d844b + 779b2c8 commit f39b04c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions controllers/products/propController.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ const createProp = async (req, res) => {
req.body.furnitureAndDecorList;

const tentAndCanopyListUrl =
getFileUrls(req.files, "tentAndCanopyList")[0] || req.body.tentAndCanopyList;
getFileUrls(req.files, "tentAndCanopyList")[0] ||
req.body.tentAndCanopyList;

const audioVisualListUrl =
getFileUrls(req.files, "audioVisualList")[0] || req.body.audioVisualList;
Expand Down Expand Up @@ -56,7 +57,7 @@ const createProp = async (req, res) => {
insurancePolicy: insurancePolicyUrl,
});

const savedProp = await newProp.save();
const savedProp = await newProp.save();
res.status(201).json(savedProp);
} catch (error) {
res.status(400).json({ error: error.message });
Expand Down

0 comments on commit f39b04c

Please sign in to comment.