renderizando projetos no mmpCreator utilizando o lmms
This commit is contained in:
1 parent
ca2c2fa15a
commit
c602b155b9
2 files changed
+19
-2
No files matched your search
@@ -721,7 +721,10 @@ app.post("/render", async (req, res) => {
|
||||
|
||||
// prioridade: sala -> pega do estado autoritativo
|
||||
let projectXml = null;
|
||||
if (roomName) {
|
||||
|
||||
if (xml && String(xml).trim().length > 0) {
|
||||
projectXml = xml;
|
||||
} else if (roomName) {
|
||||
if (renderLocks.get(roomName)) {
|
||||
return res.status(429).json({ ok: false, error: "render_in_progress" });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user