Skip to content

Commit

Permalink
remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
madaley1 committed Nov 16, 2023
1 parent 83c343c commit f2c970c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions plugins/forward-webhook/src/forward.webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ export function forwardWebhook(
return async (listener: FlatfileListener) => {
return listener.on('**', async (e) => {
if (e.topic === 'job:outcome-acknowledged') return
// console.dir(e, { depth: null })
const { data } = await axios.post(url, { ...e })
let callbackData = undefined
if (callback) callbackData = await callback(data)
// ('forward-webhook', callbackData || data)
console.log('forward-webhook')
// console.dir(callbackData || data, { depth: null })
api.events.create({
domain: e.domain as Flatfile.Domain,
topic: 'job:outcome-acknowledged',
Expand Down

0 comments on commit f2c970c

Please sign in to comment.