From fbbf18e9f437b0bffa221eaae29cf001519f700f Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 19 Aug 2021 10:41:05 +0200 Subject: [PATCH] Webhooks Bug Fixed --- .../integrations-002-webhook-notifications.json | 16 +++++++++++++--- .../Sensor-Bot/Webhooks/CheckWebhook.js | 2 +- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/Projects/Foundations/Schemas/Docs-Topics/I/Integrations/Integrations/integrations-002-webhook-notifications.json b/Projects/Foundations/Schemas/Docs-Topics/I/Integrations/Integrations/integrations-002-webhook-notifications.json index 59cf5d19a..1befa265e 100644 --- a/Projects/Foundations/Schemas/Docs-Topics/I/Integrations/Integrations/integrations-002-webhook-notifications.json +++ b/Projects/Foundations/Schemas/Docs-Topics/I/Integrations/Integrations/integrations-002-webhook-notifications.json @@ -146,12 +146,22 @@ }, { "style": "Text", - "text": "The Masters Data Mine features the definition of the Webhooks sensor bot used to monitor incoming notifications. You need to run an instance of this bot in the data mining section of the exchange and market of your choice.", - "updated": 1615370092995 + "text": "The Webhooks Data Mine features the definition of the Webhooks sensor bot used to monitor incoming notifications. You need to run an instance of this bot in the data mining section of the exchange and market of your choice.", + "updated": 1629361373616 }, { "style": "Text", - "text": "The default workspace does not feature these tasks. To create a task for the Webhooks sensor bot, you need to uninstall and re-install the corresponding market." + "text": "The Getting-Started-Tutorials workspace does not have this Data Mine as a plugin so you will need to add it first. To do that locate the Plugins node, expand it and at the Plugins Data Mines add a New Plugin File. You can setup it's configuration like this:" + }, + { + "style": "Json", + "text": "{\n \"project\": \"Foundations\",\n \"fileName\": \"Webhooks\",\n \"folderName\": \"Data-Mines\",\n \"nodeType\": \"Data Mine\",\n \"saveWithWorkspace\": false\n}", + "updated": 1629361560976 + }, + { + "style": "Text", + "text": "The default workspace does not feature these tasks. To create a task for the Webhooks sensor bot, you need to uninstall and re-install the corresponding market. The prcess of installing a market adds all the tasks needed to run all the bots defined at all Data Mines present at the workspace.", + "updated": 1629361603647 }, { "style": "Success", diff --git a/Projects/Foundations/TS/Bot-Modules/Sensor-Bot/Webhooks/CheckWebhook.js b/Projects/Foundations/TS/Bot-Modules/Sensor-Bot/Webhooks/CheckWebhook.js index 4d6739de0..84d8cfa01 100644 --- a/Projects/Foundations/TS/Bot-Modules/Sensor-Bot/Webhooks/CheckWebhook.js +++ b/Projects/Foundations/TS/Bot-Modules/Sensor-Bot/Webhooks/CheckWebhook.js @@ -38,7 +38,7 @@ exports.newFoundationsBotModulesCheckWebhook = function (processIndex) { function getContextVariables(callBack) { try { - let reportKey = "Masters" + "-" + "Webhooks" + "-" + "Check-Webhook" + let reportKey = "Webhooks" + "-" + "Webhooks" + "-" + "Check-Webhook" TS.projects.foundations.globals.loggerVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).BOT_MAIN_LOOP_LOGGER_MODULE_OBJECT.write(MODULE_NAME, "[INFO] start -> getContextVariables -> reportKey = " + reportKey)