Skip to content

Commit

Permalink
FIX: FCM pushes fixed due to deprecation of legacy api
Browse files Browse the repository at this point in the history
  • Loading branch information
Overtorment committed Dec 15, 2024
1 parent 8cd02ff commit 5e5ae18
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/class/GroundControlToMajorTom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion src/controller/GroundController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion src/worker-sender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 5e5ae18

Please sign in to comment.