mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 09:45:04 +01:00
Added previous version to payload.
This commit is contained in:
parent
f9f3a5bcab
commit
46174f652c
@ -23,6 +23,7 @@ async function sendTelemetry(action) {
|
||||
|
||||
const { default: isDocker } = await import('is-docker');
|
||||
const { default: fetch } = await import('node-fetch');
|
||||
const upgrade = json.version !== undefined && json.version !== pkg.version;
|
||||
|
||||
const payload = {
|
||||
action,
|
||||
@ -33,7 +34,8 @@ async function sendTelemetry(action) {
|
||||
os: `${os.type()} (${os.version()})`,
|
||||
docker: isDocker(),
|
||||
ci: isCI,
|
||||
upgrade: json.version !== undefined && json.version !== pkg.version,
|
||||
prev: json.version,
|
||||
upgrade,
|
||||
};
|
||||
|
||||
await retry(
|
||||
|
Loading…
Reference in New Issue
Block a user