type checker wants a string

This commit is contained in:
RealBeepMcJeep
2023-08-30 08:36:40 -07:00
parent 6ca678e137
commit 11cef1b234

View File

@ -5328,7 +5328,7 @@ app.post('/asset_delete', jsonParser, async (request, response) => {
// Sanitize filename // Sanitize filename
const safe_input = checkAssetFileName(inputFilename); const safe_input = checkAssetFileName(inputFilename);
if (safe_input == '') if (safe_input == '')
return response.sendFile(400); return response.sendFile('400');
const file_path = path.join(directories.assets, category, safe_input) const file_path = path.join(directories.assets, category, safe_input)
console.debug("Request received to delete", category, file_path); console.debug("Request received to delete", category, file_path);