From 16fe508a73e717910b39e858c9b613e7b6723bcb Mon Sep 17 00:00:00 2001 From: Behzad Rabiei Date: Wed, 9 Oct 2024 17:14:38 +0400 Subject: [PATCH 1/2] fix: fix typo --- src/services/discourse/core.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/discourse/core.service.ts b/src/services/discourse/core.service.ts index 250d431..884d6e9 100644 --- a/src/services/discourse/core.service.ts +++ b/src/services/discourse/core.service.ts @@ -16,8 +16,8 @@ async function getPropertyHandler(req: IAuthAndPlatform) { /** * run discourse extraction - * @param {Strin} platformId - * @returns {Promise} + * @param {String} platformId + * @returns {Promise} */ async function runDiscourseExtraction(platformId: string): Promise { try { From 7df763c0ebe29493a5c1db337c2bcd8fc87d57a1 Mon Sep 17 00:00:00 2001 From: Behzad Rabiei Date: Wed, 9 Oct 2024 17:45:52 +0400 Subject: [PATCH 2/2] fix: fix issue --- src/services/discourse/core.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/discourse/core.service.ts b/src/services/discourse/core.service.ts index 884d6e9..9fb5b0c 100644 --- a/src/services/discourse/core.service.ts +++ b/src/services/discourse/core.service.ts @@ -27,7 +27,7 @@ async function runDiscourseExtraction(platformId: string): Promise { console.log(data); const response = await fetch(config.discourse.extractionURL, { method: 'POST', - body: new URLSearchParams(data), + body: JSON.stringify(data), headers: { 'Content-Type': 'application/json' }, }); if (response.ok) {