mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
#126, added skeleton of note relations, copied from similar concept of labels
This commit is contained in:
@@ -42,6 +42,10 @@ async function addLabelSync(labelId, sourceId) {
|
||||
await addEntitySync("labels", labelId, sourceId);
|
||||
}
|
||||
|
||||
async function addRelationSync(relationId, sourceId) {
|
||||
await addEntitySync("relations", relationId, sourceId);
|
||||
}
|
||||
|
||||
async function addApiTokenSync(apiTokenId, sourceId) {
|
||||
await addEntitySync("api_tokens", apiTokenId, sourceId);
|
||||
}
|
||||
@@ -101,6 +105,7 @@ async function fillAllSyncRows() {
|
||||
await fillSyncRows("images", "imageId");
|
||||
await fillSyncRows("note_images", "noteImageId");
|
||||
await fillSyncRows("labels", "labelId");
|
||||
await fillSyncRows("relations", "relationId");
|
||||
await fillSyncRows("api_tokens", "apiTokenId");
|
||||
await fillSyncRows("options", "name", 'isSynced = 1');
|
||||
}
|
||||
@@ -115,6 +120,7 @@ module.exports = {
|
||||
addImageSync,
|
||||
addNoteImageSync,
|
||||
addLabelSync,
|
||||
addRelationSync,
|
||||
addApiTokenSync,
|
||||
addEntitySync,
|
||||
cleanupSyncRowsForMissingEntities,
|
||||
|
||||
Reference in New Issue
Block a user