Skip to content

Commit

Permalink
Merge branch 'main' of github.com:michaelbrusegard/NiclasNordlundPhot…
Browse files Browse the repository at this point in the history
…ography

* 'main' of github.com:michaelbrusegard/NiclasNordlundPhotography:
  style: 🎨 format code with Prettier
  • Loading branch information
michaelbrusegard committed Oct 1, 2023
2 parents b8798b5 + df4df12 commit 24a8565
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion website/bug.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function createGithubIssue(req, res) {
Authorization: `Bearer ${process.env.PERSONAL_ACCESS_TOKEN}`,
"User-Agent": `${process.env.USER_AGENT}`,
},
}
},
);

const newIssueUrl = response.data.html_url;
Expand Down
6 changes: 3 additions & 3 deletions website/handlePurchase.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const webhookVerifyMiddleware = (request, response, next) => {
stripe.webhooks.constructEvent(
request.rawBody,
sigHeader,
webhookSecret
webhookSecret,
);
next();
} catch (error) {
Expand Down Expand Up @@ -47,7 +47,7 @@ const handleCheckoutSession = (req, res) => {
fileSharing.handlePhotos(
purchasedItems,
customerEmail,
customerName
customerName,
);

res.json({ received: true });
Expand All @@ -56,7 +56,7 @@ const handleCheckoutSession = (req, res) => {
purchasedItems,
customerEmail,
customerName,
error
error,
);
res.status(500).json({ error: e.message });
console.error(error);
Expand Down
2 changes: 1 addition & 1 deletion website/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ app.use(
express.static(frontendPath, {
index: "home.html",
extensions: ["html"],
})
}),
);

app.use(express.urlencoded({ extended: true }));
Expand Down

0 comments on commit 24a8565

Please sign in to comment.