-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat 4466 deepgram language detection using node #138
Conversation
feat:4466 add deepgram language detection
@stnguyen90 can you give it a look? |
There was a problem hiding this 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"]); |
There was a problem hiding this comment.
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.", | ||
}); |
There was a problem hiding this comment.
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.", | ||
}); |
There was a problem hiding this comment.
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
@Player256, will you be able to address the comments I left? |
Fixes appwrite/appwrite#4466