Skip to content

Commit 89e1396

Browse files
committed
Notifications settings
1 parent edfff5e commit 89e1396

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

coderd/apidoc/docs.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/apidoc/swagger.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/notifications.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func (api *API) notificationsSettings(rw http.ResponseWriter, r *http.Request) {
2626
settingsJSON, err := api.Database.GetNotificationsSettings(r.Context())
2727
if err != nil {
2828
httpapi.Write(r.Context(), rw, http.StatusInternalServerError, codersdk.Response{
29-
Message: "Failed to fetch current notification settings.",
29+
Message: "Failed to fetch current notifications settings.",
3030
Detail: err.Error(),
3131
})
3232
return
@@ -52,7 +52,7 @@ func (api *API) notificationsSettings(rw http.ResponseWriter, r *http.Request) {
5252
// @Accept json
5353
// @Produce json
5454
// @Tags General
55-
// @Param request body codersdk.NotificationsSettings true "Notification settings request"
55+
// @Param request body codersdk.NotificationsSettings true "Notifications settings request"
5656
// @Success 200 {object} codersdk.NotificationsSettings
5757
// @Router /notifications/settings [put]
5858
func (api *API) putNotificationsSettings(rw http.ResponseWriter, r *http.Request) {
@@ -82,7 +82,7 @@ func (api *API) putNotificationsSettings(rw http.ResponseWriter, r *http.Request
8282
currentSettingsJSON, err := api.Database.GetNotificationsSettings(r.Context())
8383
if err != nil {
8484
httpapi.Write(r.Context(), rw, http.StatusInternalServerError, codersdk.Response{
85-
Message: "Failed to fetch current notification settings.",
85+
Message: "Failed to fetch current notifications settings.",
8686
Detail: err.Error(),
8787
})
8888
return

docs/api/general.md

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)