Этот коммит содержится в:
Arya Khochare
2024-10-08 15:53:08 +05:30
коммит произвёл GitHub
родитель 71d98443c3
Коммит f0918e1c01
2 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@@ -106,7 +106,6 @@ issues:
channels/api4/user.go|\
channels/api4/user_local.go|\
channels/api4/user_test.go|\
channels/api4/webhook.go|\
channels/api4/webhook_test.go|\
channels/api4/websocket_test.go|\
channels/app/admin.go|\

Просмотреть файл

@@ -238,7 +238,9 @@ func getIncomingHooks(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
w.Write(js)
if _, err := w.Write(js); err != nil {
c.Logger.Warn("Error while writing response", mlog.Err(err))
}
}
func getIncomingHook(c *Context, w http.ResponseWriter, r *http.Request) {
@@ -528,7 +530,9 @@ func getOutgoingHooks(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
w.Write(js)
if _, err := w.Write(js); err != nil {
c.Logger.Warn("Error while writing response", mlog.Err(err))
}
}
func getOutgoingHook(c *Context, w http.ResponseWriter, r *http.Request) {