mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
cleaned up images and links which are not used nor supported
This commit is contained in:
@@ -171,20 +171,6 @@ async function updateNote(noteId, newNote, ctx) {
|
||||
now,
|
||||
noteId]);
|
||||
|
||||
await sql.remove("images", noteId);
|
||||
|
||||
for (const img of newNote.images) {
|
||||
img.image_data = atob(img.image_data);
|
||||
|
||||
await sql.insert("images", img);
|
||||
}
|
||||
|
||||
await sql.remove("links", noteId);
|
||||
|
||||
for (const link in newNote.links) {
|
||||
//await sql.insert("links", link);
|
||||
}
|
||||
|
||||
await sync_table.addNoteSync(noteId);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user