From 8da278a2797e970da12010fdd60c65592c572e6c Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Mon, 14 Oct 2019 01:53:28 +0900 Subject: Update https-proxy-agent など (#5497) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Use proxy for web-push * https-proxy-agent 3.0.0 --- src/services/push-notification.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/services/push-notification.ts b/src/services/push-notification.ts index da1c1dbf5e..fa7cacfdc4 100644 --- a/src/services/push-notification.ts +++ b/src/services/push-notification.ts @@ -29,7 +29,9 @@ export default async function(userId: string, type: string, body?: any) { push.sendNotification(pushSubscription, JSON.stringify({ type, body - })).catch((err: any) => { + }), { + proxy: config.proxy + }).catch((err: any) => { //swLogger.info(err.statusCode); //swLogger.info(err.headers); //swLogger.info(err.body); -- cgit v1.2.3-freya