Fix upgrade logic.

This commit is contained in:
Mike Cao 2022-03-18 22:44:02 -07:00
parent 5b1eb8bec2
commit f9f3a5bcab

View File

@ -33,7 +33,7 @@ async function sendTelemetry(action) {
os: `${os.type()} (${os.version()})`, os: `${os.type()} (${os.version()})`,
docker: isDocker(), docker: isDocker(),
ci: isCI, ci: isCI,
upgrade: json.version || false, upgrade: json.version !== undefined && json.version !== pkg.version,
}; };
await retry( await retry(