mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-16 02:05:04 +01:00
Updated telemetry payload.
This commit is contained in:
parent
45e4bfe3a9
commit
0d33e6d08f
@ -31,14 +31,14 @@ async function run() {
|
|||||||
node: process.version,
|
node: process.version,
|
||||||
platform: os.platform(),
|
platform: os.platform(),
|
||||||
arch: os.arch(),
|
arch: os.arch(),
|
||||||
os: os.version(),
|
os: `${os.type()} (${os.version()})`,
|
||||||
isDocker: isDocker(),
|
isDocker: isDocker(),
|
||||||
isCI,
|
isCI,
|
||||||
};
|
};
|
||||||
|
|
||||||
await retry(
|
await retry(
|
||||||
async () => {
|
async () => {
|
||||||
const res = await fetch(url, {
|
await fetch(url, {
|
||||||
method: 'post',
|
method: 'post',
|
||||||
cache: 'no-cache',
|
cache: 'no-cache',
|
||||||
headers: {
|
headers: {
|
||||||
@ -46,8 +46,6 @@ async function run() {
|
|||||||
},
|
},
|
||||||
body: JSON.stringify(payload),
|
body: JSON.stringify(payload),
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(res);
|
|
||||||
},
|
},
|
||||||
{ minTimeout: 500, retries: 1, factor: 1 },
|
{ minTimeout: 500, retries: 1, factor: 1 },
|
||||||
).catch(() => {});
|
).catch(() => {});
|
||||||
|
Loading…
Reference in New Issue
Block a user