Skip to content

Commit

Permalink
fix: added requestTimeout per <parse-community/node-apn#43>
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Aug 3, 2024
1 parent c9ce658 commit e36a2c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helpers/send-apn.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down Expand Up @@ -39,6 +40,7 @@ async function sendApn(client, id, mailboxPath = 'INBOX') {
// <https://github.com/freswa/dovecot-xaps-daemon/blob/abce2f14cf1b5afa56329ebb4d923c9c2aebdfe3/internal/apns.go#L26>
// ca: GEO_TRUST_CA,
// rejectUnauthorized: false, // only needed if GEO_TRUST_CA passed
requestTimeout: ms('15s'),
production: true // always required
});

Expand Down

0 comments on commit e36a2c1

Please sign in to comment.