Browse Source

Fixes #38

katowulf-pr-tpl
Nicolas Garnier 8 years ago
committed by GitHub
parent
commit
d15f5285eb
  1. 2
      minimal-webhook/functions/index.js

2
minimal-webhook/functions/index.js

@ -25,7 +25,7 @@ const WEBHOOK_URL = 'http://requestb.in/1mqw97l1';
// Reads the content of the node that triggered the function and sends it to the registered Webhook // Reads the content of the node that triggered the function and sends it to the registered Webhook
// URL. // URL.
exports.webhook = functions.database.ref('/hooks/$hookId').onWrite(event => { exports.webhook = functions.database.ref('/hooks/{hookId}').onWrite(event => {
return request({ return request({
uri: WEBHOOK_URL, uri: WEBHOOK_URL,
method: 'POST', method: 'POST',

Loading…
Cancel
Save