mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-25 18:36:24 +00:00
fix error on prod
This commit is contained in:
parent
d1404f3228
commit
d1cf01061b
|
@ -11,8 +11,7 @@ export default async (req: Request, res: Response) => {
|
|||
const theme = req.params.name;
|
||||
|
||||
if (!theme.endsWith(".css")) {
|
||||
res.statusCode = 400;
|
||||
res.send("Theme must be a css file");
|
||||
return res.status(400).send("Theme must be a css file");
|
||||
}
|
||||
|
||||
const customTheme = path.resolve(extraThemesFolder, theme);
|
||||
|
|
Loading…
Reference in a new issue