Skip to content

Commit

Permalink
fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
VeronicaPim committed Nov 16, 2024
1 parent 172912b commit 923d0e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/translate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ const fetch = require('node-fetch');
const translatorApi = module.exports;

translatorApi.translate = async function (postData) {
// Update the translator URL to the correct endpoint
const TRANSLATOR_API = 'https://bluesleep-ai.openai.azure.com/'; // Correct endpoint
const response = await fetch(`${TRANSLATOR_API}/?content=${postData.content}`);
const data = await response.json();
return [data.is_english, data.translated_content];
const TRANSLATOR_API = 'https://bluesleep-ai.openai.azure.com/'; // Correct endpoint

Check failure on line 8 in src/translate/index.js

View workflow job for this annotation

GitHub Actions / lint-and-test / test

Multiple spaces found before '// Correct end...'
const response = await fetch(`${TRANSLATOR_API}/?content=${postData.content}`);
const data = await response.json();
return [data.is_english, data.translated_content];
};
Binary file not shown.

0 comments on commit 923d0e0

Please sign in to comment.