✨ Fix script
Some checks failed
Retrieve Events Datas / Retrieve-Events-Datas (push) Failing after 15s
Some checks failed
Retrieve Events Datas / Retrieve-Events-Datas (push) Failing after 15s
This commit is contained in:
parent
f035ff999c
commit
c53e23c4ac
@ -13,5 +13,7 @@ config();
|
|||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => data);
|
.then(data => data);
|
||||||
|
|
||||||
|
if (!Array.isArray(datas)) return;
|
||||||
|
|
||||||
writeFileSync("events.json", JSON.stringify(datas, null, 4));
|
writeFileSync("events.json", JSON.stringify(datas, null, 4));
|
||||||
})()
|
})()
|
Loading…
Reference in New Issue
Block a user