1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-08-09 04:25:18 +02:00
This commit is contained in:
Paweł Malak 2021-11-15 16:33:06 +01:00
parent 197738ee65
commit 03e4c65cd8

View file

@ -9,7 +9,11 @@ const createApp = asyncWrapper(async (req, res, next) => {
const { pinAppsByDefault } = await loadConfig(); const { pinAppsByDefault } = await loadConfig();
let app; let app;
let _body = { ...req.body, icon: req.body.icon.trim() }; let _body = { ...req.body };
if (_body.icon) {
_body.icon = _body.icon.trim();
}
if (req.file) { if (req.file) {
_body.icon = req.file.filename; _body.icon = req.file.filename;