Openstatus www.openstatus.dev
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

update endpoint (#1211)

authored by

Thibault Le Ouay and committed by
GitHub
3859b992 66b9f010

+3 -1
+3 -1
apps/checker/update.go
··· 22 22 } 23 23 24 24 func UpdateStatus(ctx context.Context, updateData UpdateData) { 25 - url := "https://openstatus-api.fly.dev/updateStatus" 25 + url := "https://openstatus-workflows.fly.dev/updateStatus" 26 26 basic := "Basic " + os.Getenv("CRON_SECRET") 27 27 payloadBuf := new(bytes.Buffer) 28 + 28 29 if err := json.NewEncoder(payloadBuf).Encode(updateData); err != nil { 29 30 log.Ctx(ctx).Error().Err(err).Msg("error while updating status") 30 31 return ··· 37 38 if _, err := client.Do(req); err != nil { 38 39 log.Ctx(ctx).Error().Err(err).Msg("error while updating status") 39 40 } 41 + 40 42 defer req.Body.Close() 41 43 // Should we add a retry mechanism here? 42 44 }