diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2025-01-05 16:23:56 -0800 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2025-01-05 16:23:56 -0800 |
commit | ce0ce143ba74fdcc5d1cb4c6b09a41b2804cf0ab (patch) | |
tree | 41046147ddd8375312e77f0f48cb16dd96f8fa8f | |
parent | 6109b9ff733d6bfb9fff4d107036f0b6214662d4 (diff) | |
download | phoneof-ce0ce143ba74fdcc5d1cb4c6b09a41b2804cf0ab.tar.gz phoneof-ce0ce143ba74fdcc5d1cb4c6b09a41b2804cf0ab.zip |
fix args
-rw-r--r-- | adapters/messaging/ntfy.go | 2 | ||||
-rw-r--r-- | api/api.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/adapters/messaging/ntfy.go b/adapters/messaging/ntfy.go index 9c68f3a..afb9215 100644 --- a/adapters/messaging/ntfy.go +++ b/adapters/messaging/ntfy.go @@ -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) @@ -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() |