Merge branch 'dev' into 'main'

Update service/service.go

See merge request external/heruvym!56
This commit is contained in:
Mikhail 2023-05-06 18:47:39 +00:00
commit ced15d7f72

@ -138,6 +138,13 @@ func (h *Heruvym) CreateTicket(w http.ResponseWriter, r *http.Request) {
http.Error(w, "CannotCreateMessage", http.StatusInternalServerError)
return
}
if h.notifier != nil {
if _, err := h.notifier.Send(tb.ChatID(-1001802261459),
fmt.Sprintf(
"Поступило новое сообщение")); err != nil {
fmt.Println("CAN NOT NOTIFY", err)
}
}
} else {
ticketID = tickets[0].ID
}