mirror of
https://github.com/pawelmalak/flame.git
synced 2026-02-28 01:13:11 +08:00
Added option to change date formatting. Added shortcuts to clear search bar
This commit is contained in:
@@ -15,14 +15,12 @@ exports.createCategory = asyncWrapper(async (req, res, next) => {
|
||||
let category;
|
||||
|
||||
if (pinCategories) {
|
||||
if (parseInt(pinCategories.value)) {
|
||||
category = await Category.create({
|
||||
...req.body,
|
||||
isPinned: true,
|
||||
});
|
||||
} else {
|
||||
category = await Category.create(req.body);
|
||||
}
|
||||
category = await Category.create({
|
||||
...req.body,
|
||||
isPinned: true,
|
||||
});
|
||||
} else {
|
||||
category = await Category.create(req.body);
|
||||
}
|
||||
|
||||
res.status(201).json({
|
||||
|
||||
Reference in New Issue
Block a user