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

This commit is contained in:
Elizabeth Hunt 2025-01-13 21:39:54 -08:00
parent fb7349b69d
commit bf5b86e9b8
2 changed files with 3 additions and 4 deletions

View File

@ -7,10 +7,9 @@ import (
) )
func UnlockDoor(webhook string) error { func UnlockDoor(webhook string) error {
req, _ := http.NewRequest("GET", webhook) res, err := http.Get(webhook)
res, err := http.DefaultClient.Do(req)
if err != nil || res.StatusCode/100 != 2 { 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 return nil
} }

View File

@ -7,9 +7,9 @@ import (
"git.simponic.xyz/simponic/phoneassistant/api" "git.simponic.xyz/simponic/phoneassistant/api"
"git.simponic.xyz/simponic/phoneassistant/args" "git.simponic.xyz/simponic/phoneassistant/args"
"git.simponic.xyz/simponic/phoneassistant/assistant"
"git.simponic.xyz/simponic/phoneassistant/database" "git.simponic.xyz/simponic/phoneassistant/database"
"git.simponic.xyz/simponic/phoneassistant/ntfy" "git.simponic.xyz/simponic/phoneassistant/ntfy"
"git.simponic.xyz/simponic/phoneassistant/ntfy/assistant"
"git.simponic.xyz/simponic/phoneassistant/scheduler" "git.simponic.xyz/simponic/phoneassistant/scheduler"
"github.com/joho/godotenv" "github.com/joho/godotenv"
) )