We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b1bf98 commit 56663fbCopy full SHA for 56663fb
store/getParsedData.ts
@@ -11,7 +11,7 @@ import { insertMatch } from './insert';
11
import redis from './redis';
12
import axios from 'axios';
13
14
-const blobArchive = new Archive('blob');
+const blobArchive = config.ENABLE_BLOB_ARCHIVE ? new Archive('blob') : null;
15
16
/**
17
* Return parse data by reading it without fetching.
@@ -30,7 +30,7 @@ export async function readParseData(
30
let data = row?.parsed
31
? (JSON.parse(row.parsed) as ParserMatch)
32
: undefined;
33
- if (!data && config.ENABLE_BLOB_ARCHIVE) {
+ if (!data && blobArchive) {
34
const archive = await blobArchive.archiveGet(`${matchId}_parsed`);
35
data = archive ? JSON.parse(archive.toString()) as ParserMatch : undefined;
36
}
0 commit comments