@tiledesk/tiledesk-whatsapp-connector 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -518,9 +518,9 @@ router.post("/disconnect", async (req, res) => {
|
|
|
518
518
|
let token = req.body.token;
|
|
519
519
|
let subscriptionId = req.body.subscription_id;
|
|
520
520
|
|
|
521
|
-
let deleted = await deleteSettingsByProjectId(project_id);
|
|
521
|
+
let deleted = await utils.deleteSettingsByProjectId(project_id);
|
|
522
522
|
if (!deleted) {
|
|
523
|
-
deleted = deleteSettings(project_id, null)
|
|
523
|
+
deleted = utils.deleteSettings(project_id, null)
|
|
524
524
|
}
|
|
525
525
|
|
|
526
526
|
if (!deleted) {
|
|
@@ -543,7 +543,7 @@ router.post("/disconnect", async (req, res) => {
|
|
|
543
543
|
});
|
|
544
544
|
|
|
545
545
|
tdClient.unsubscribe(subscriptionId).then((data) => {
|
|
546
|
-
res.redirect(
|
|
546
|
+
res.redirect(`configure?project_id=${project_id}&token=${token}`);
|
|
547
547
|
}).catch((err) => {
|
|
548
548
|
winston.error("(wab) unsubscribe error: " + err);
|
|
549
549
|
});
|