mirror of
https://github.com/pawelmalak/flame.git
synced 2025-08-09 12:35:18 +02:00
Fixed #177
This commit is contained in:
parent
197738ee65
commit
03e4c65cd8
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue