Skip to content

Commit

Permalink
Merge pull request #396 from TogetherCrew/390-discourse-platform-+-vi…
Browse files Browse the repository at this point in the history
…olation-detection-module

390 discourse platform + violation detection module
  • Loading branch information
Behzad-rabiei authored Oct 9, 2024
2 parents f9f9394 + 7df763c commit b737eb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/discourse/core.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ async function getPropertyHandler(req: IAuthAndPlatform) {

/**
* run discourse extraction
* @param {Strin} platformId
* @returns {Promise<IDiscordUser>}
* @param {String} platformId
* @returns {Promise<Void>}
*/
async function runDiscourseExtraction(platformId: string): Promise<void> {
try {
Expand All @@ -27,7 +27,7 @@ async function runDiscourseExtraction(platformId: string): Promise<void> {
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) {
Expand Down

0 comments on commit b737eb3

Please sign in to comment.