Skip to content

Commit

Permalink
chore: apply formatting changes
Browse files Browse the repository at this point in the history
[skip vercel]
  • Loading branch information
QuarterColon authored and github-actions[bot] committed Jul 19, 2024
1 parent 8895c0b commit a7de350
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions controllers/products/venueController.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ const createVenue = async (req, res) => {
return res.status(400).json({ message: "Venue already exists" });
}

const termsAndConditionsFileUrl = getFileUrls( req.files, "termsConditions")[0] || req.body.termsConditions;
const cancellationPolicyFileUrl = getFileUrls( req.files, "cancellationPolicy")[0] || req.body.cancellationPolicy;
const portfolioUrls = getFileUrls( req.files, "portfolio");
const termsAndConditionsFileUrl =
getFileUrls(req.files, "termsConditions")[0] || req.body.termsConditions;
const cancellationPolicyFileUrl =
getFileUrls(req.files, "cancellationPolicy")[0] ||
req.body.cancellationPolicy;
const portfolioUrls = getFileUrls(req.files, "portfolio");

const newVenue = new Venue({
id: req.body.id,
Expand Down
2 changes: 1 addition & 1 deletion models/caterer.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const catererSchema = new Schema({
beverages: [String],
special_dietary_options: [String],
pre_set_menus: [String],
customizable: { type: Boolean,},
customizable: { type: Boolean },
event_types_catered: [String],
additional_services: [String],
staff_provided: [String],
Expand Down

0 comments on commit a7de350

Please sign in to comment.