mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-29 15:51:14 +00:00
fix error on prod
This commit is contained in:
parent
d1404f3228
commit
d1cf01061b
1 changed files with 1 additions and 2 deletions
|
@ -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