From e36a2c1cf75768d34bad57c709241e964bfdbc27 Mon Sep 17 00:00:00 2001 From: titanism <101466223+titanism@users.noreply.github.com> Date: Sat, 3 Aug 2024 06:10:27 -0500 Subject: [PATCH] fix: added requestTimeout per --- helpers/send-apn.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helpers/send-apn.js b/helpers/send-apn.js index 399d4fed28..d38d001468 100644 --- a/helpers/send-apn.js +++ b/helpers/send-apn.js @@ -7,6 +7,7 @@ const crypto = require('node:crypto'); const apn = require('@parse/node-apn'); const dayjs = require('dayjs-with-plugins'); +const ms = require('ms'); const pMap = require('p-map'); const pMapSeries = require('p-map-series'); @@ -39,6 +40,7 @@ async function sendApn(client, id, mailboxPath = 'INBOX') { // // ca: GEO_TRUST_CA, // rejectUnauthorized: false, // only needed if GEO_TRUST_CA passed + requestTimeout: ms('15s'), production: true // always required });