fix(telemetry): fix typo 'sucess' -> 'success' everywhere

This commit is contained in:
MickLesk
2026-02-09 18:47:34 +01:00
parent b5960db4f9
commit 7915237622
3 changed files with 11 additions and 11 deletions

View File

@@ -264,12 +264,12 @@ func fetchPage(page, limit int) ([]OldDataModel, error) {
}
func importRecord(pbURL, collection string, old OldDataModel) error {
// Map status: "done" -> "sucess" (note the typo in the original schema)
// Map status: "done" -> "success"
status := old.Status
switch status {
case "done":
status = "sucess" // Note: original schema has typo "sucess" not "success"
case "installing", "failed", "unknown", "sucess":
status = "success"
case "installing", "failed", "unknown", "success":
// keep as-is
default:
status = "unknown"