diff options
author | Elizabeth Hunt <elizabeth@simponic.xyz> | 2025-01-13 21:39:54 -0800 |
---|---|---|
committer | Elizabeth Hunt <elizabeth@simponic.xyz> | 2025-01-13 21:44:43 -0800 |
commit | bf5b86e9b87b77de6905870cc61e0d988e18879b (patch) | |
tree | 6298cccd9d3fda27427edd35b67cc64de4542378 | |
parent | fb7349b69d77557aceb189efbc26497d7470d641 (diff) | |
download | phoneassistant-bf5b86e9b87b77de6905870cc61e0d988e18879b.tar.gz phoneassistant-bf5b86e9b87b77de6905870cc61e0d988e18879b.zip |
fix assistant
-rw-r--r-- | assistant/assistant.go (renamed from ntfy/assistant/assistant.go) | 5 | ||||
-rw-r--r-- | main.go | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/ntfy/assistant/assistant.go b/assistant/assistant.go index 3f15647..00db82c 100644 --- a/ntfy/assistant/assistant.go +++ b/assistant/assistant.go @@ -7,10 +7,9 @@ import ( ) func UnlockDoor(webhook string) error { - req, _ := http.NewRequest("GET", webhook) - res, err := http.DefaultClient.Do(req) + res, err := http.Get(webhook) if err != nil || res.StatusCode/100 != 2 { - return fmt.Errorf("got err sending message send req %s %v %s", message, res, err) + return fmt.Errorf("got err sending message send %v %s", res, err) } return nil } @@ -7,9 +7,9 @@ import ( "git.simponic.xyz/simponic/phoneassistant/api" "git.simponic.xyz/simponic/phoneassistant/args" + "git.simponic.xyz/simponic/phoneassistant/assistant" "git.simponic.xyz/simponic/phoneassistant/database" "git.simponic.xyz/simponic/phoneassistant/ntfy" - "git.simponic.xyz/simponic/phoneassistant/ntfy/assistant" "git.simponic.xyz/simponic/phoneassistant/scheduler" "github.com/joho/godotenv" ) |