From ebd193ab3812653e050c460c097d8609cad6a73c Mon Sep 17 00:00:00 2001 From: Preston Baxter Date: Sat, 18 Nov 2023 18:15:18 -0600 Subject: [PATCH] B: Fix type being wrong --- service/vendors/pco/webhooks/subscription.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/vendors/pco/webhooks/subscription.go b/service/vendors/pco/webhooks/subscription.go index 81ebdeb..a196ac1 100644 --- a/service/vendors/pco/webhooks/subscription.go +++ b/service/vendors/pco/webhooks/subscription.go @@ -7,7 +7,7 @@ type Subscription struct { //attrs Active bool `jsonapi:"attr,active,omitempty" bson:"active"` ApplicationId string `jsonapi:"attr,application_id,omitempty" bson:"application_id"` - AuthenticitySecret bool `jsonapi:"attr,authenticity_secret,omitempty" bson:"authenticity_secret"` + AuthenticitySecret string `jsonapi:"attr,authenticity_secret,omitempty" bson:"authenticity_secret"` CreatedAt time.Time `jsonapi:"attr,created_at,omitempty" bson:"created_at"` UpdatedAt time.Time `jsonapi:"attr,updated_at,omitempty" bson:"updated_at"` Name string `jsonapi:"attr,name,omitempty" bson:"name"` @@ -19,7 +19,7 @@ type WebhookSubscription struct { //attrs Active bool `jsonapi:"attr,active,omitempty" bson:"active"` ApplicationId string `jsonapi:"attr,application_id,omitempty" bson:"application_id"` - AuthenticitySecret bool `jsonapi:"attr,authenticity_secret,omitempty" bson:"authenticity_secret"` + AuthenticitySecret string `jsonapi:"attr,authenticity_secret,omitempty" bson:"authenticity_secret"` CreatedAt time.Time `jsonapi:"attr,created_at,omitempty" bson:"created_at"` UpdatedAt time.Time `jsonapi:"attr,updated_at,omitempty" bson:"updated_at"` Name string `jsonapi:"attr,name,omitempty" bson:"name"`