Skip to content

Commit

Permalink
Fix insert webhookevent SQL to work with BulkQuery that requires no s…
Browse files Browse the repository at this point in the history
…pace after VALUES
  • Loading branch information
rowanseymour committed Mar 10, 2022
1 parent 2aea3ed commit 3863f29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/models/webhook_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ func NewWebhookEvent(orgID OrgID, resthookID ResthookID, data string, createdOn
}

const sqlInsertWebhookEvents = `
INSERT INTO api_webhookevent(data, resthook_id, org_id, created_on, action)
VALUES (:data, :resthook_id, :org_id, :created_on, 'POST')
INSERT INTO api_webhookevent(data, resthook_id, org_id, created_on, action)
VALUES(:data, :resthook_id, :org_id, :created_on, 'POST')
RETURNING id`

// InsertWebhookEvents inserts the passed in webhook events, assigning them ids
Expand Down

0 comments on commit 3863f29

Please sign in to comment.