Update connection to check for script
This commit is contained in:
parent
56c587cc27
commit
bb2da5f403
1 changed files with 1 additions and 1 deletions
2
umami.go
2
umami.go
|
|
@ -204,7 +204,7 @@ func (h *UmamiFeeder) connect(ctx context.Context, config *Config) error {
|
||||||
return fmt.Errorf("`websites` should not be empty")
|
return fmt.Errorf("`websites` should not be empty")
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err := sendRequest(ctx, h.host+"/health", nil, nil)
|
_, err := sendRequest(ctx, h.host+"/api/script.js", nil, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("Failed to get health for rybbit: %w", err)
|
return fmt.Errorf("Failed to get health for rybbit: %w", err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue