Skip to content

Commit a3d5485

Browse files
fix: #147 notifier now shows previous input value
1 parent 8656610 commit a3d5485

File tree

7 files changed

+19
-2
lines changed

7 files changed

+19
-2
lines changed

backend/app/api/static/docs/docs.go

+4
Original file line numberDiff line numberDiff line change
@@ -2762,6 +2762,10 @@ const docTemplate = `{
27622762
"updatedAt": {
27632763
"type": "string"
27642764
},
2765+
"url": {
2766+
"description": "URL field is not exposed to the client",
2767+
"type": "string"
2768+
},
27652769
"userId": {
27662770
"type": "string"
27672771
}

backend/app/api/static/docs/swagger.json

+4
Original file line numberDiff line numberDiff line change
@@ -2755,6 +2755,10 @@
27552755
"updatedAt": {
27562756
"type": "string"
27572757
},
2758+
"url": {
2759+
"description": "URL field is not exposed to the client",
2760+
"type": "string"
2761+
},
27582762
"userId": {
27592763
"type": "string"
27602764
}

backend/app/api/static/docs/swagger.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,9 @@ definitions:
539539
type: string
540540
updatedAt:
541541
type: string
542+
url:
543+
description: URL field is not exposed to the client
544+
type: string
542545
userId:
543546
type: string
544547
type: object

backend/internal/data/repo/repo_notifier.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ type (
5555

5656
Name string `json:"name"`
5757
IsActive bool `json:"isActive"`
58-
URL string `json:"-"` // URL field is not exposed to the client
58+
URL string `json:"url"`
5959
}
6060
)
6161

docs/docs/api/openapi-2.0.json

+4
Original file line numberDiff line numberDiff line change
@@ -2755,6 +2755,10 @@
27552755
"updatedAt": {
27562756
"type": "string"
27572757
},
2758+
"url": {
2759+
"description": "URL field is not exposed to the client",
2760+
"type": "string"
2761+
},
27582762
"userId": {
27592763
"type": "string"
27602764
}

frontend/lib/api/types/data-contracts.ts

+2
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ export interface NotifierOut {
323323
isActive: boolean;
324324
name: string;
325325
updatedAt: Date | string;
326+
/** URL field is not exposed to the client */
327+
url: string;
326328
userId: string;
327329
}
328330

frontend/pages/profile.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
targetID.value = v.id;
209209
notifier.value = {
210210
name: v.name,
211-
url: "",
211+
url: v.url,
212212
isActive: v.isActive,
213213
};
214214
} else {

0 commit comments

Comments
 (0)