mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-22 21:09:36 +02:00
Trim icon name. Filter private bookmarks if user is not authenticated
This commit is contained in:
parent
d94a6cea5a
commit
6281994be8
5 changed files with 26 additions and 4 deletions
|
@ -12,6 +12,10 @@ const createBookmark = asyncWrapper(async (req, res, next) => {
|
|||
categoryId: parseInt(req.body.categoryId),
|
||||
};
|
||||
|
||||
if (_body.icon) {
|
||||
_body.icon = _body.icon.trim();
|
||||
}
|
||||
|
||||
if (req.file) {
|
||||
_body.icon = req.file.filename;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue