added missing code errors

This commit is contained in:
SrGooglo 2023-04-13 02:02:21 +00:00
parent a388e342d1
commit d26e5a78f5

View File

@ -6,12 +6,17 @@ export default {
fn: async (req, res) => {
const { stream, app } = req.body
if (process.env.STREAMING__OUTPUT_PUBLISH_REQUESTS === "true") {
console.log("Publish request:", req.body)
}
const streamingProfile = await StreamingProfile.findOne({
stream_key: stream
})
if (!streamingProfile) {
return res.status(404).json({
code: 1,
error: "Streaming profile not found",
})
}