From 056477b319434838cd89ef62bace0b575fccda0e Mon Sep 17 00:00:00 2001 From: "Michael W. Martin" Date: Fri, 4 Oct 2024 07:41:54 -0700 Subject: [PATCH] completing subscription confirmation requests --- src/sns-adapter.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sns-adapter.ts b/src/sns-adapter.ts index 8e1085d..bf63dcc 100644 --- a/src/sns-adapter.ts +++ b/src/sns-adapter.ts @@ -151,7 +151,10 @@ export class SNSAdapter implements ISNSAdapter { this.debug("Visiting subscribe url: " + req.body.SubscribeURL); return fetch(req.body.SubscribeURL, { method: "GET" - }).then((fetchResponse) => this.debug("Subscribed: " + fetchResponse)); + }).then((fetchResponse) => { + this.debug("Subscribed: " + fetchResponse) + res.status(200).send(); + }); } const sendIt = (err, response) => {