Skip to content

Commit

Permalink
Address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnie4k committed Sep 19, 2023
1 parent 82d4be5 commit 0e06c9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/repos/FlyerRepo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,11 +329,11 @@ const editFlyer = async (

// Update flyer fields (if not nul)
if (categorySlug) flyer.categorySlug = categorySlug;
if (endDate) flyer.endDate = Object.assign(new Date(endDate));
if (endDate) flyer.endDate = new Date(endDate);
if (flyerURL) flyer.flyerURL = flyerURL;
if (imageURL) flyer.imageURL = imageURL;
if (location) flyer.location = location;
if (startDate) flyer.startDate = Object.assign(new Date(startDate));
if (startDate) flyer.startDate = new Date(startDate);
if (title) flyer.title = title;

return flyer.save();
Expand Down

0 comments on commit 0e06c9e

Please sign in to comment.