mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
update implementation and test for getAPNsFullUrlToUse
This commit is contained in:
@@ -155,9 +155,9 @@ export class NotificationService {
|
||||
const devBaseUrl = "https://api.development.push.apple.com"
|
||||
const prodBaseUrl = "https://api.push.apple.com"
|
||||
|
||||
let hostToUse = prodBaseUrl;
|
||||
if (process.env.NODE_ENV !== "production") {
|
||||
hostToUse = devBaseUrl;
|
||||
let hostToUse = devBaseUrl;
|
||||
if (process.env.APNS_IS_PRODUCTION === "1") {
|
||||
hostToUse = prodBaseUrl;
|
||||
}
|
||||
|
||||
const path = "/3/device/" + deviceId;
|
||||
|
||||
Reference in New Issue
Block a user