Do the same thing for GrpahJSON secrets/env vars

This commit is contained in:
Eric Allam
2022-04-27 20:16:37 +01:00
parent a40eeaae67
commit 145b4f6696
+4 -1
View File
@@ -1,5 +1,8 @@
export async function sendEvent(event: Record<string, any>): Promise<void> {
if (!GRAPH_JSON_API_KEY || !GRAPH_JSON_COLLECTION) {
if (
typeof GRAPH_JSON_API_KEY === "undefined" ||
typeof GRAPH_JSON_COLLECTION === "undefined"
) {
return;
}