mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
sync fixes
This commit is contained in:
parent
48b30b985e
commit
a452e4add5
@ -1,4 +1,8 @@
|
|||||||
class BBlob {
|
class BBlob {
|
||||||
|
static get entityName() { return "blobs"; }
|
||||||
|
static get primaryKeyName() { return "blobId"; }
|
||||||
|
static get hashedProperties() { return ["blobId", "content"]; }
|
||||||
|
|
||||||
constructor(row) {
|
constructor(row) {
|
||||||
/** @type {string} */
|
/** @type {string} */
|
||||||
this.blobId = row.blobId;
|
this.blobId = row.blobId;
|
||||||
|
@ -25,7 +25,7 @@ const RELATION = 'relation';
|
|||||||
class BNote extends AbstractBeccaEntity {
|
class BNote extends AbstractBeccaEntity {
|
||||||
static get entityName() { return "notes"; }
|
static get entityName() { return "notes"; }
|
||||||
static get primaryKeyName() { return "noteId"; }
|
static get primaryKeyName() { return "noteId"; }
|
||||||
static get hashedProperties() { return ["noteId", "title", "isProtected", "type", "mime"]; }
|
static get hashedProperties() { return ["noteId", "title", "isProtected", "type", "mime", "blobId"]; }
|
||||||
|
|
||||||
constructor(row) {
|
constructor(row) {
|
||||||
super();
|
super();
|
||||||
|
@ -17,7 +17,8 @@ const BAttachment = require("./battachment");
|
|||||||
class BRevision extends AbstractBeccaEntity {
|
class BRevision extends AbstractBeccaEntity {
|
||||||
static get entityName() { return "revisions"; }
|
static get entityName() { return "revisions"; }
|
||||||
static get primaryKeyName() { return "revisionId"; }
|
static get primaryKeyName() { return "revisionId"; }
|
||||||
static get hashedProperties() { return ["revisionId", "noteId", "title", "isProtected", "dateLastEdited", "dateCreated", "utcDateLastEdited", "utcDateCreated", "utcDateModified"]; }
|
static get hashedProperties() { return ["revisionId", "noteId", "title", "isProtected", "dateLastEdited", "dateCreated",
|
||||||
|
"utcDateLastEdited", "utcDateCreated", "utcDateModified", "blobId"]; }
|
||||||
|
|
||||||
constructor(row, titleDecrypted = false) {
|
constructor(row, titleDecrypted = false) {
|
||||||
super();
|
super();
|
||||||
|
@ -1,21 +1,23 @@
|
|||||||
const BNote = require('./entities/bnote');
|
|
||||||
const BRevision = require('./entities/brevision.js');
|
|
||||||
const BAttachment = require("./entities/battachment");
|
const BAttachment = require("./entities/battachment");
|
||||||
const BBranch = require('./entities/bbranch');
|
|
||||||
const BAttribute = require('./entities/battribute');
|
const BAttribute = require('./entities/battribute');
|
||||||
const BRecentNote = require('./entities/brecent_note');
|
const BBlob = require("./entities/bblob");
|
||||||
|
const BBranch = require('./entities/bbranch');
|
||||||
const BEtapiToken = require('./entities/betapi_token');
|
const BEtapiToken = require('./entities/betapi_token');
|
||||||
|
const BNote = require('./entities/bnote');
|
||||||
const BOption = require('./entities/boption');
|
const BOption = require('./entities/boption');
|
||||||
|
const BRecentNote = require('./entities/brecent_note');
|
||||||
|
const BRevision = require('./entities/brevision.js');
|
||||||
|
|
||||||
const ENTITY_NAME_TO_ENTITY = {
|
const ENTITY_NAME_TO_ENTITY = {
|
||||||
"attributes": BAttribute,
|
|
||||||
"branches": BBranch,
|
|
||||||
"notes": BNote,
|
|
||||||
"revisions": BRevision,
|
|
||||||
"attachments": BAttachment,
|
"attachments": BAttachment,
|
||||||
"recent_notes": BRecentNote,
|
"attributes": BAttribute,
|
||||||
|
"blobs": BBlob,
|
||||||
|
"branches": BBranch,
|
||||||
"etapi_tokens": BEtapiToken,
|
"etapi_tokens": BEtapiToken,
|
||||||
"options": BOption
|
"notes": BNote,
|
||||||
|
"options": BOption,
|
||||||
|
"recent_notes": BRecentNote,
|
||||||
|
"revisions": BRevision
|
||||||
};
|
};
|
||||||
|
|
||||||
function getEntityFromEntityName(entityName) {
|
function getEntityFromEntityName(entityName) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user