Skip to content

Commit

Permalink
Fix build hook in lambda, bump to v4.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
brianzelip committed Dec 1, 2021
1 parent b24891a commit 1497ce8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ This document started at v1.6.10 in the [Azellaz.com](https://github.com/brianze

## [Unreleased]

## [4.0.2] - 2021-12-01

Fix Netlify build hook in lambda.

### Updated

- src/lambda/snipcart-webhook-listener.js

## [4.0.1] - 2021-10-11

Clean up readme, maintenance.md, and this changelog file.
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "azellaz",
"version": "4.0.1",
"version": "4.0.2",
"description": "Source code for Azellaz.com. She's crafty, and she's just my type!",
"scripts": {
"clean": "rm -rf _site",
Expand Down
2 changes: 1 addition & 1 deletion src/lambda/snipcart-webhook-listener.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ console.log('Snipcart webhook received!');
exports.handler = async (event) => {
const body = JSON.parse(event.body);
const netlifyBuildHook =
'https://api.netlify.com/build_hooks/5ef219aec0c4ea9331e5fe67?trigger_branch=master&trigger_title=Triggered+by+Snipcart+new+order+webhook';
'https://api.netlify.com/build_hooks/61a75b7417cf533984b69ddf?trigger_branch=main&trigger_title=Triggered+by+Snipcart+new+order+webhook';

if (body.eventName && body.eventName === 'order.completed') {
const response = await axios({
Expand Down

0 comments on commit 1497ce8

Please sign in to comment.