on slack webhook storage.Upsert message
This commit is contained in:
6
main.go
6
main.go
@@ -122,7 +122,9 @@ func _newHandlerPostAPIV1EventsSlack(cfg Config) http.HandlerFunc {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Printf("message: %+v", m)
|
if err := cfg.storage.Upsert(ctx, m); err != nil {
|
||||||
http.Error(w, "not impl", http.StatusNotImplemented)
|
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user