Skip to content

Commit

Permalink
fix: #147 notifier now shows previous input value
Browse files Browse the repository at this point in the history
  • Loading branch information
tankerkiller125 committed Oct 4, 2024
1 parent 8656610 commit a3d5485
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 2 deletions.
4 changes: 4 additions & 0 deletions backend/app/api/static/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2762,6 +2762,10 @@ const docTemplate = `{
"updatedAt": {
"type": "string"
},
"url": {
"description": "URL field is not exposed to the client",
"type": "string"
},
"userId": {
"type": "string"
}
Expand Down
4 changes: 4 additions & 0 deletions backend/app/api/static/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -2755,6 +2755,10 @@
"updatedAt": {
"type": "string"
},
"url": {
"description": "URL field is not exposed to the client",
"type": "string"
},
"userId": {
"type": "string"
}
Expand Down
3 changes: 3 additions & 0 deletions backend/app/api/static/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,9 @@ definitions:
type: string
updatedAt:
type: string
url:
description: URL field is not exposed to the client
type: string
userId:
type: string
type: object
Expand Down
2 changes: 1 addition & 1 deletion backend/internal/data/repo/repo_notifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ type (

Name string `json:"name"`
IsActive bool `json:"isActive"`
URL string `json:"-"` // URL field is not exposed to the client
URL string `json:"url"`
}
)

Expand Down
4 changes: 4 additions & 0 deletions docs/docs/api/openapi-2.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -2755,6 +2755,10 @@
"updatedAt": {
"type": "string"
},
"url": {
"description": "URL field is not exposed to the client",
"type": "string"
},
"userId": {
"type": "string"
}
Expand Down
2 changes: 2 additions & 0 deletions frontend/lib/api/types/data-contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ export interface NotifierOut {
isActive: boolean;
name: string;
updatedAt: Date | string;
/** URL field is not exposed to the client */
url: string;
userId: string;
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/pages/profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
targetID.value = v.id;
notifier.value = {
name: v.name,
url: "",
url: v.url,
isActive: v.isActive,
};
} else {
Expand Down

0 comments on commit a3d5485

Please sign in to comment.