Skip to content

Commit 5755adf

Browse files
committed
Fix ID's
1 parent f6e5fc8 commit 5755adf

File tree

5 files changed

+17
-1
lines changed

5 files changed

+17
-1
lines changed

api/docs/docs.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3342,6 +3342,7 @@ const docTemplate = `{
33423342
"notification_message_status_enabled",
33433343
"notification_newsletter_enabled",
33443344
"notification_webhook_enabled",
3345+
"subscription_id",
33453346
"subscription_name",
33463347
"timezone",
33473348
"updated_at"
@@ -3387,6 +3388,10 @@ const docTemplate = `{
33873388
"type": "string",
33883389
"example": "2022-06-05T14:26:02.302718+03:00"
33893390
},
3391+
"subscription_id": {
3392+
"type": "string",
3393+
"example": "8f9c71b8-b84e-4417-8408-a62274f65a08"
3394+
},
33903395
"subscription_name": {
33913396
"type": "string",
33923397
"example": "free"

api/docs/swagger.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3073,6 +3073,7 @@
30733073
"notification_message_status_enabled",
30743074
"notification_newsletter_enabled",
30753075
"notification_webhook_enabled",
3076+
"subscription_id",
30763077
"subscription_name",
30773078
"timezone",
30783079
"updated_at"
@@ -3118,6 +3119,10 @@
31183119
"type": "string",
31193120
"example": "2022-06-05T14:26:02.302718+03:00"
31203121
},
3122+
"subscription_id": {
3123+
"type": "string",
3124+
"example": "8f9c71b8-b84e-4417-8408-a62274f65a08"
3125+
},
31213126
"subscription_name": {
31223127
"type": "string",
31233128
"example": "free"

api/docs/swagger.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,9 @@ definitions:
388388
subscription_ends_at:
389389
example: "2022-06-05T14:26:02.302718+03:00"
390390
type: string
391+
subscription_id:
392+
example: 8f9c71b8-b84e-4417-8408-a62274f65a08
393+
type: string
391394
subscription_name:
392395
example: free
393396
type: string
@@ -412,6 +415,7 @@ definitions:
412415
- notification_message_status_enabled
413416
- notification_newsletter_enabled
414417
- notification_webhook_enabled
418+
- subscription_id
415419
- subscription_name
416420
- timezone
417421
- updated_at

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:"subscription_id" example:"8f9c71b8-b84e-4417-8408-a62274f65a08"`
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"`

web/models/api.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ export interface EntitiesUser {
224224
notification_webhook_enabled: boolean
225225
/** @example "2022-06-05T14:26:02.302718+03:00" */
226226
subscription_ends_at?: string
227+
/** @example "8f9c71b8-b84e-4417-8408-a62274f65a08" */
228+
subscription_id: string
227229
/** @example "free" */
228230
subscription_name: string
229231
/** @example "2022-06-05T14:26:02.302718+03:00" */

0 commit comments

Comments
 (0)