cleaned up images and links which are not used nor supported

This commit is contained in:
azivner
2017-11-29 20:47:01 -05:00
parent d019d0a690
commit 3386cd790e
7 changed files with 13 additions and 59 deletions

View File

@@ -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);
});
}