Skip to content

Commit 911bf03

Browse files
committed
Fixing docs
1 parent b05e0cb commit 911bf03

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/pkg/entities/message.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ type Message struct {
112112
DeliveredAt *time.Time `json:"delivered_at" example:"2022-06-05T14:26:09.527976+03:00" validate:"optional"`
113113
ExpiredAt *time.Time `json:"expired_at" example:"2022-06-05T14:26:09.527976+03:00" validate:"optional"`
114114
FailedAt *time.Time `json:"failed_at" example:"2022-06-05T14:26:09.527976+03:00" validate:"optional"`
115-
CanBePolled bool `json:"can_be_polled" example:"false" swaggerignore:"true"`
115+
CanBePolled bool `json:"-" example:"false" swaggerignore:"true"`
116116
SendAttemptCount uint `json:"send_attempt_count" example:"0"`
117117
MaxSendAttempts uint `json:"max_send_attempts" example:"1"`
118118
ReceivedAt *time.Time `json:"received_at" example:"2022-06-05T14:26:09.527976+03:00" validate:"optional"`

api/pkg/entities/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ type User struct {
7878
Timezone string `json:"timezone" example:"Europe/Helsinki" gorm:"default:Africa/Accra"`
7979
ActivePhoneID *uuid.UUID `json:"active_phone_id" gorm:"type:uuid;" example:"32343a19-da5e-4b1b-a767-3298a73703cb" validate:"optional"`
8080
SubscriptionName SubscriptionName `json:"subscription_name" example:"free"`
81-
SubscriptionID *string `json:"subscription_id" example:"8f9c71b8-b84e-4417-8408-a62274f65a08" swaggerignore:"true"`
81+
SubscriptionID *string `json:"-" example:"8f9c71b8-b84e-4417-8408-a62274f65a08" swaggerignore:"true"`
8282
SubscriptionStatus *string `json:"subscription_status" example:"on_trial" validate:"optional"`
8383
SubscriptionRenewsAt *time.Time `json:"subscription_renews_at" example:"2022-06-05T14:26:02.302718+03:00" validate:"optional"`
8484
SubscriptionEndsAt *time.Time `json:"subscription_ends_at" example:"2022-06-05T14:26:02.302718+03:00" validate:"optional"`

0 commit comments

Comments
 (0)