chat sessions in project view
This commit is contained in:
@@ -12,10 +12,10 @@ router.get('/', async (req, res) => {
|
||||
});
|
||||
|
||||
router.post('/', async (req, res) => {
|
||||
const { name, description, colour, icon, projectOnly } = req.body;
|
||||
const { name, description, colour, icon, isolated } = req.body;
|
||||
if (!name?.trim()) return res.status(400).json({ error: 'name is required' });
|
||||
try {
|
||||
res.status(201).json(await memory.createProject({ name: name.trim(), description, colour, icon, projectOnly }));
|
||||
res.status(201).json(await memory.createProject({ name: name.trim(), description, colour, icon, isolated }));
|
||||
} catch (err) {
|
||||
res.status(500).json({ error: err.message });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user