on slack webhook storage.Upsert message

main
Bel LaPointe 2024-04-12 09:22:42 -06:00
parent 24628f4ebb
commit 1b148092b9
1 changed files with 4 additions and 2 deletions

View File

@ -122,7 +122,9 @@ func _newHandlerPostAPIV1EventsSlack(cfg Config) http.HandlerFunc {
return
}
log.Printf("message: %+v", m)
http.Error(w, "not impl", http.StatusNotImplemented)
if err := cfg.storage.Upsert(ctx, m); err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
}
}