mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 05:15:59 +01:00
cleanup obsolete image code
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
const Note = require('../entities/note');
|
||||
const NoteRevision = require('../entities/note_revision');
|
||||
const Image = require('../entities/image');
|
||||
const NoteImage = require('../entities/note_image');
|
||||
const Link = require('../entities/link');
|
||||
const Branch = require('../entities/branch');
|
||||
const Attribute = require('../entities/attribute');
|
||||
@@ -12,8 +10,6 @@ const repository = require('../services/repository');
|
||||
|
||||
const ENTITY_NAME_TO_ENTITY = {
|
||||
"attributes": Attribute,
|
||||
"images": Image,
|
||||
"note_images": NoteImage,
|
||||
"branches": Branch,
|
||||
"notes": Note,
|
||||
"note_revisions": NoteRevision,
|
||||
@@ -42,12 +38,6 @@ function createEntityFromRow(row) {
|
||||
else if (row.linkId) {
|
||||
entity = new Link(row);
|
||||
}
|
||||
else if (row.noteImageId) {
|
||||
entity = new NoteImage(row);
|
||||
}
|
||||
else if (row.imageId) {
|
||||
entity = new Image(row);
|
||||
}
|
||||
else if (row.branchId && row.notePath) {
|
||||
entity = new RecentNote(row);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user