mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
added missing code errors
This commit is contained in:
parent
a388e342d1
commit
d26e5a78f5
@ -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",
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user