diff --git a/src/class/GroundControlToMajorTom.ts b/src/class/GroundControlToMajorTom.ts index 9556b77..95ea01c 100644 --- a/src/class/GroundControlToMajorTom.ts +++ b/src/class/GroundControlToMajorTom.ts @@ -9,7 +9,7 @@ const jwt = require("jsonwebtoken"); const http2 = require("http2"); require("dotenv").config(); -if (!process.env.APNS_P8 || !process.env.APPLE_TEAM_ID || !process.env.APNS_P8_KID || !process.env.GOOGLE_KEY_FILE) { +if (!process.env.APNS_P8 || !process.env.APPLE_TEAM_ID || !process.env.APNS_P8_KID || !process.env.GOOGLE_KEY_FILE || !process.env.GOOGLE_PROJECT_ID) { console.error("not all env variables set"); process.exit(); } diff --git a/src/controller/GroundController.ts b/src/controller/GroundController.ts index 52acaf9..8fb96c9 100644 --- a/src/controller/GroundController.ts +++ b/src/controller/GroundController.ts @@ -11,7 +11,7 @@ import dataSource from "../data-source"; import { paths, components } from "../openapi/api"; require("dotenv").config(); const pck = require("../../package.json"); -if (!process.env.JAWSDB_MARIA_URL || !process.env.GOOGLE_KEY_FILE || !process.env.APNS_P8 || !process.env.APNS_TOPIC || !process.env.APPLE_TEAM_ID || !process.env.APNS_P8_KID) { +if (!process.env.JAWSDB_MARIA_URL || !process.env.GOOGLE_KEY_FILE || !process.env.APNS_P8 || !process.env.APNS_TOPIC || !process.env.APPLE_TEAM_ID || !process.env.APNS_P8_KID || !process.env.GOOGLE_PROJECT_ID) { console.error("not all env variables set"); process.exit(); } diff --git a/src/index.ts b/src/index.ts index d931808..577dd79 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,7 +7,7 @@ import dataSource from "./data-source"; require("dotenv").config(); const helmet = require("helmet"); const cors = require("cors"); -if (!process.env.JAWSDB_MARIA_URL || !process.env.GOOGLE_KEY_FILE || !process.env.APNS_P8 || !process.env.APNS_TOPIC) { +if (!process.env.JAWSDB_MARIA_URL || !process.env.GOOGLE_KEY_FILE || !process.env.APNS_P8 || !process.env.APNS_TOPIC || !process.env.GOOGLE_PROJECT_ID) { console.error("not all env variables set"); process.exit(); } diff --git a/src/worker-sender.ts b/src/worker-sender.ts index 98a926b..d6efacc 100644 --- a/src/worker-sender.ts +++ b/src/worker-sender.ts @@ -6,7 +6,7 @@ import { NOTIFICATION_LEVEL_NEWS, NOTIFICATION_LEVEL_PRICE, NOTIFICATION_LEVEL_T import dataSource from "./data-source"; import { components } from "./openapi/api"; require("dotenv").config(); -if (!process.env.GOOGLE_KEY_FILE || !process.env.APNS_P8 || !process.env.APNS_TOPIC || !process.env.APPLE_TEAM_ID || !process.env.APNS_P8_KID) { +if (!process.env.GOOGLE_KEY_FILE || !process.env.APNS_P8 || !process.env.APNS_TOPIC || !process.env.APPLE_TEAM_ID || !process.env.APNS_P8_KID || !process.env.GOOGLE_PROJECT_ID) { console.error("not all env variables set"); process.exit(); }