Remove endpoint on webhook events
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -46,7 +46,6 @@ CREATE TABLE webhook_events (
|
||||
tenant_id TEXT NOT NULL,
|
||||
webhook_data_id TEXT NOT NULL REFERENCES webhook_data(id) ON UPDATE CASCADE ON DELETE CASCADE,
|
||||
webhook_configuration_id TEXT NOT NULL REFERENCES webhook_configurations(id) ON UPDATE CASCADE ON DELETE CASCADE,
|
||||
endpoint_url TEXT NOT NULL,
|
||||
status webhook_event_status NOT NULL,
|
||||
response JSONB,
|
||||
created_at TIMESTAMP WITH TIME ZONE NOT NULL
|
||||
|
||||
@@ -32,7 +32,6 @@ type (
|
||||
ID gid.GID `db:"id"`
|
||||
WebhookDataID gid.GID `db:"webhook_data_id"`
|
||||
WebhookConfigurationID gid.GID `db:"webhook_configuration_id"`
|
||||
EndpointURL string `db:"endpoint_url"`
|
||||
Status WebhookEventStatus `db:"status"`
|
||||
Response json.RawMessage `db:"response"`
|
||||
CreatedAt time.Time `db:"created_at"`
|
||||
@@ -62,7 +61,6 @@ SELECT
|
||||
id,
|
||||
webhook_data_id,
|
||||
webhook_configuration_id,
|
||||
endpoint_url,
|
||||
status,
|
||||
response,
|
||||
created_at
|
||||
@@ -129,7 +127,6 @@ INSERT INTO webhook_events (
|
||||
tenant_id,
|
||||
webhook_data_id,
|
||||
webhook_configuration_id,
|
||||
endpoint_url,
|
||||
status,
|
||||
response,
|
||||
created_at
|
||||
@@ -139,7 +136,6 @@ VALUES (
|
||||
@tenant_id,
|
||||
@webhook_data_id,
|
||||
@webhook_configuration_id,
|
||||
@endpoint_url,
|
||||
@status,
|
||||
@response,
|
||||
@created_at
|
||||
@@ -151,7 +147,6 @@ VALUES (
|
||||
"tenant_id": scope.GetTenantID(),
|
||||
"webhook_data_id": w.WebhookDataID,
|
||||
"webhook_configuration_id": w.WebhookConfigurationID,
|
||||
"endpoint_url": w.EndpointURL,
|
||||
"status": w.Status,
|
||||
"response": w.Response,
|
||||
"created_at": w.CreatedAt,
|
||||
|
||||
Reference in New Issue
Block a user