Skip to content

Commit

Permalink
feat(hasura): add setup to turn.io activist pressure webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
igr-santos committed Oct 29, 2024
1 parent 39f82d9 commit bae7cdd
Showing 1 changed file with 17 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
table:
schema: public
name: activist_pressures
schema: public
object_relationships:
- name: activist
using:
Expand All @@ -11,12 +11,12 @@ object_relationships:
- name: mobilization
using:
manual_configuration:
remote_table:
schema: public
name: mobilizations
insertion_order: null
column_mapping:
mobilization_id: id
insertion_order: null
remote_table:
name: mobilizations
schema: public
- name: widget
using:
foreign_key_constraint_on: widget_id
Expand All @@ -26,8 +26,8 @@ array_relationships:
foreign_key_constraint_on:
column: pressure_id
table:
schema: public
name: pressures_integration_logs
schema: public
select_permissions:
- role: anonymous
permission:
Expand Down Expand Up @@ -86,13 +86,23 @@ select_permissions:
_eq: X-Hasura-User-Id
allow_aggregations: true
event_triggers:
- name: webhook-an-activist_pressures
- name: turn-io-activist-action-pressure
definition:
enable_manual: false
insert:
columns: '*'
retry_conf:
interval_sec: 10
num_retries: 0
timeout_sec: 60
webhook: '{{N8N_WEBHOOK_URL}}/turn-io/activist-action'
- name: webhook-an-activist_pressures
definition:
enable_manual: false
insert:
columns: '*'
retry_conf:
interval_sec: 10
num_retries: 0
timeout_sec: 60
webhook: '{{N8N_WEBHOOK_URL}}/action-network/activist_action'

0 comments on commit bae7cdd

Please sign in to comment.