mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 09:56:36 +01:00
fix for icon change when creating note / changing type/mime
This commit is contained in:
@@ -33,14 +33,15 @@ router.get('/:noteId', auth.checkApiAuth, wrap(async (req, res, next) => {
|
||||
router.post('/:parentNoteId/children', auth.checkApiAuth, wrap(async (req, res, next) => {
|
||||
const sourceId = req.headers.source_id;
|
||||
const parentNoteId = req.params.parentNoteId;
|
||||
const note = req.body;
|
||||
const newNote = req.body;
|
||||
|
||||
await sql.doInTransaction(async () => {
|
||||
const { noteId, noteTreeId } = await notes.createNewNote(parentNoteId, note, req, sourceId);
|
||||
const { noteId, noteTreeId, note } = await notes.createNewNote(parentNoteId, newNote, req, sourceId);
|
||||
|
||||
res.send({
|
||||
'note_id': noteId,
|
||||
'note_tree_id': noteTreeId
|
||||
'note_tree_id': noteTreeId,
|
||||
'note': note
|
||||
});
|
||||
});
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user