boo
This commit is contained in:
2
main.go
2
main.go
@@ -231,7 +231,7 @@ func handlerPostAPIV1EventsSlackInitialize(cfg Config) http.HandlerFunc {
|
|||||||
`)
|
`)
|
||||||
if _, err := cfg.driver.ExecContext(r.Context(), `
|
if _, err := cfg.driver.ExecContext(r.Context(), `
|
||||||
INSERT
|
INSERT
|
||||||
INTO initialization (token, updated)
|
INTO initialization (label, token, updated)
|
||||||
VALUES ('slack_events_webhook_token', $1, $2)
|
VALUES ('slack_events_webhook_token', $1, $2)
|
||||||
`, challenge.Token, time.Now().UTC()); err != nil {
|
`, challenge.Token, time.Now().UTC()); err != nil {
|
||||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||||
|
|||||||
Reference in New Issue
Block a user