fix small formatting mistake

This commit is contained in:
lsaa
2023-04-28 17:38:41 -03:00
committed by GitHub
parent 8ef534b84b
commit 545a9afc39

View File

@ -2098,10 +2098,10 @@ app.get('/thumbnail', jsonParser, async function (request, response) {
return response.sendStatus(403);
}
if (config.disableThumbnails == true) {
const pathToOriginalFile = path.join(getOriginalFolder(type), file);
return response.sendFile(pathToOriginalFile, { root: __dirname });
}
if (config.disableThumbnails == true) {
const pathToOriginalFile = path.join(getOriginalFolder(type), file);
return response.sendFile(pathToOriginalFile, { root: __dirname });
}
const pathToCachedFile = await generateThumbnail(type, file);