diff --git a/src/controllers/speechToText.ts b/src/controllers/speechToText.ts index 10691612..9957cc2a 100644 --- a/src/controllers/speechToText.ts +++ b/src/controllers/speechToText.ts @@ -66,7 +66,7 @@ export const getTranscription: MiddleWare = async (req, res, next) => { data: payload, }); - return res.send({ transcription: response.transcription }); + return res.status(200).json({ transcription: response.transcription }); } catch (err) { return next(); } diff --git a/src/controllers/translation.ts b/src/controllers/translation.ts index aa6b963b..76b61f85 100644 --- a/src/controllers/translation.ts +++ b/src/controllers/translation.ts @@ -73,7 +73,7 @@ export const getTranslation: MiddleWare = async (req, res, next) => { data: payload, }); - return res.send({ translation: response.translation }); + return res.status(200).json({ translation: response.translation }); } catch (err) { return next(err); }