fix: rename redirectUrl to redirectTo

This commit is contained in:
Siyuan 2025-11-07 08:06:42 +00:00
parent 7c5dfd9e50
commit 252dcba7a1
2 changed files with 2 additions and 2 deletions

2
hw.go
View File

@ -39,7 +39,7 @@ func readOtpEntropy() ([]byte, error) { //nolint:unused
return content[0x17:0x1C], nil
}
func hwReboot(force bool, postRebootAction *ota.PostRebootAction, delay time.Duration) error { //nolint:unused
func hwReboot(force bool, postRebootAction *ota.PostRebootAction, delay time.Duration) error {
logger.Info().Msgf("Reboot requested, rebooting in %d seconds...", delay)
writeJSONRPCEvent("willReboot", postRebootAction, currentSession)

View File

@ -43,7 +43,7 @@ type UpdateStatus struct {
// It is used to redirect the user to a specific page after a reboot
type PostRebootAction struct {
HealthCheck string `json:"healthCheck"` // The health check URL to call after the reboot
RedirectUrl string `json:"redirectUrl"` // The URL to redirect to after the reboot
RedirectTo string `json:"redirectTo"` // The URL to redirect to after the reboot
}
// componentUpdateStatus represents the status of a component update