Skip to content

Conversation

@Player256
Copy link

@Player256 Player256 commented Mar 5, 2023

@Player256
Copy link
Author

Player256 commented Mar 6, 2023

@stnguyen90 can you give it a look?

@stnguyen90 stnguyen90 self-requested a review April 25, 2023 19:16
Copy link
Contributor

@stnguyen90 stnguyen90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great PR! 🤯 We left some comments during the review, please check them out.


module.exports = async (req, res) => {
const { fileUrl } = JSON.parse(req.payload);
const {apiKey} = JSON.parse(req.variables["DEEPGRAM_API_KEY"]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't need to parse the variable like this 🧐

res.json({
success: false,
message: "API key is required.",
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure to return after this so execution doesn't continue

res.json({
success: false,
message: "File Url is required.",
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure to return after this so execution doesn't continue

@stnguyen90
Copy link
Contributor

@Player256, will you be able to address the comments I left?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

⚡ Write a deepgramLanguageDetection() Function using Node

2 participants