plz no pollute global namespace
This commit is contained in:
parent
b91bc21d60
commit
e1df933368
|
@ -5254,7 +5254,7 @@ app.post('/asset_download', jsonParser, async (request, response) => {
|
||||||
|
|
||||||
// Check category
|
// Check category
|
||||||
let category = null;
|
let category = null;
|
||||||
for (i of validCategories)
|
for (let i of validCategories)
|
||||||
if (i == inputCategory)
|
if (i == inputCategory)
|
||||||
category = i;
|
category = i;
|
||||||
|
|
||||||
|
@ -5316,7 +5316,7 @@ app.post('/asset_delete', jsonParser, async (request, response) => {
|
||||||
|
|
||||||
// Check category
|
// Check category
|
||||||
let category = null;
|
let category = null;
|
||||||
for (i of validCategories)
|
for (let i of validCategories)
|
||||||
if (i == inputCategory)
|
if (i == inputCategory)
|
||||||
category = i;
|
category = i;
|
||||||
|
|
||||||
|
@ -5371,7 +5371,7 @@ app.post('/get_character_assets_list', jsonParser, async (request, response) =>
|
||||||
|
|
||||||
// Check category
|
// Check category
|
||||||
let category = null
|
let category = null
|
||||||
for (i of validCategories)
|
for (let i of validCategories)
|
||||||
if (i == inputCategory)
|
if (i == inputCategory)
|
||||||
category = i
|
category = i
|
||||||
|
|
||||||
|
@ -5390,7 +5390,7 @@ app.post('/get_character_assets_list', jsonParser, async (request, response) =>
|
||||||
return filename != ".placeholder";
|
return filename != ".placeholder";
|
||||||
});
|
});
|
||||||
|
|
||||||
for (i of files)
|
for (let i of files)
|
||||||
output.push(`/characters/${name}/${category}/${i}`);
|
output.push(`/characters/${name}/${category}/${i}`);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue