fix args
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Elizabeth Hunt 2025-01-05 16:23:56 -08:00
parent 6109b9ff73
commit ce0ce143ba
Signed by: simponic
GPG Key ID: 2909B9A7FF6213EE
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ import (
"git.simponic.xyz/simponic/phoneof/utils"
)
func SendNtfy(topic string, ntfyEndpoint string) Continuation {
func SendNtfy(ntfyEndpoint string) Continuation {
return func(message Message) ContinuationChain {
return func(success Continuation, failure Continuation) ContinuationChain {
log.Println(message)

View File

@ -100,7 +100,7 @@ func MakeMux(argv *args.Arguments, dbConn *sql.DB) *http.ServeMux {
})
httpsms := messaging.HttpSmsContinuation(os.Getenv("HTTPSMS_API_TOKEN"), os.Getenv("FROM_PHONE_NUMBER"), os.Getenv("TO_PHONE_NUMBER"), argv.HttpSmsEndpoint)
ntfy := messaging.SendNtfy(argv.NtfyTopic, argv.NtfyEndpoint)
ntfy := messaging.SendNtfy(argv.NtfyEndpoint)
sendMessageContinuation := chat.SendMessageContinuation(messaging.Compose(ntfy, httpsms))
mux.HandleFunc("POST /chat", func(w http.ResponseWriter, r *http.Request) {
requestContext := makeRequestContext()