@merkl/api 0.14.6 → 0.14.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,6 +16,10 @@ const gcsClient = new S3Client({
|
|
16
16
|
let file = gcsClient.file(`rewards/${process.env.CHAIN_ID}-${process.env.ROOT}`);
|
17
17
|
if (!(await file.exists()))
|
18
18
|
file = gcsClient.file(`rewards/${process.env.CHAIN_ID}-${process.env.ROOT}.gz`);
|
19
|
+
if (!(await file.exists())) {
|
20
|
+
log.error("rewards", "File does not exist.");
|
21
|
+
process.exit(0);
|
22
|
+
}
|
19
23
|
const failedBatches = [];
|
20
24
|
// ─── Extract ─────────────────────────────────────────────────────────────────
|
21
25
|
const extract = async () => {
|