mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +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) => {
|
fn: async (req, res) => {
|
||||||
const { stream, app } = req.body
|
const { stream, app } = req.body
|
||||||
|
|
||||||
|
if (process.env.STREAMING__OUTPUT_PUBLISH_REQUESTS === "true") {
|
||||||
|
console.log("Publish request:", req.body)
|
||||||
|
}
|
||||||
|
|
||||||
const streamingProfile = await StreamingProfile.findOne({
|
const streamingProfile = await StreamingProfile.findOne({
|
||||||
stream_key: stream
|
stream_key: stream
|
||||||
})
|
})
|
||||||
|
|
||||||
if (!streamingProfile) {
|
if (!streamingProfile) {
|
||||||
return res.status(404).json({
|
return res.status(404).json({
|
||||||
|
code: 1,
|
||||||
error: "Streaming profile not found",
|
error: "Streaming profile not found",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user