Skip to content
Open

🐛 #1454

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/checker/cmd/private/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func main() {
s := tasks.New()
defer s.Stop()

apiKey := getEnv("OPENSTATUS_KEY", "my-secret-key")
apiKey := getEnv("OPENSTATUS_KEY", "")

monitorManager := scheduler.MonitorManager{
Client: getClient(apiKey),
Expand Down
31 changes: 0 additions & 31 deletions apps/checker/private-location-image/Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion apps/private-location/internal/server/monitors.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (h *privateLocationHandler) Monitors(ctx context.Context, req *connect.Requ
}

var monitors []database.Monitor
err := h.db.Select(&monitors, "SELECT monitor.* FROM monitor JOIN private_location_to_monitor a ON monitor.id = a.monitor_id JOIN private_location b ON a.private_location_id = b.id WHERE b.token = ? AND monitor.deleted_at IS NULL", token)
err := h.db.Select(&monitors, "SELECT monitor.* FROM monitor JOIN private_location_to_monitor a ON monitor.id = a.monitor_id JOIN private_location b ON a.private_location_id = b.id WHERE b.token = ? AND monitor.deleted_at IS NULL and monitor.active = 1", token)
if err != nil {
return nil, connect.NewError(connect.CodeInternal, err)
}
Expand Down
Loading