From a3c3502211ccfafd6669068563261420598d2271 Mon Sep 17 00:00:00 2001 From: "Michael W. Martin" Date: Sat, 5 Oct 2024 16:31:48 -0700 Subject: [PATCH] #211 completing subscription confirmation requests (#212) * completing subscription confirmation requests * fixing own contributor href --------- Co-authored-by: Michael W. Martin --- README.md | 2 +- src/sns-adapter.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 151a7ab..de49fe1 100644 --- a/README.md +++ b/README.md @@ -225,7 +225,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
Matt Telesky

🐛 💻
Garrett Scott

🐛 💻
Patrice Gargiolo

📖 -
Michael W. Martin

🐛 💻 +
Michael W. Martin

🐛 💻
mr-black-8

🐛 💻 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) => {