mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 09:58:32 +02:00
note content is also part of hash check
This commit is contained in:
parent
36de217835
commit
bd118027fb
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "trilium",
|
"name": "trilium",
|
||||||
"version": "0.30.1-beta",
|
"version": "0.30.2-beta",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -62,7 +62,7 @@
|
|||||||
"session-file-store": "1.2.0",
|
"session-file-store": "1.2.0",
|
||||||
"simple-node-logger": "18.12.22",
|
"simple-node-logger": "18.12.22",
|
||||||
"sqlite": "3.0.2",
|
"sqlite": "3.0.2",
|
||||||
"tar-stream": "2.0.0",
|
"tar-stream": "2.0.1",
|
||||||
"turndown": "5.0.3",
|
"turndown": "5.0.3",
|
||||||
"unescape": "1.0.1",
|
"unescape": "1.0.1",
|
||||||
"ws": "6.1.4",
|
"ws": "6.1.4",
|
||||||
|
@ -5,7 +5,7 @@ const packageJson = require('../../package');
|
|||||||
const {TRILIUM_DATA_DIR} = require('./data_dir');
|
const {TRILIUM_DATA_DIR} = require('./data_dir');
|
||||||
|
|
||||||
const APP_DB_VERSION = 125;
|
const APP_DB_VERSION = 125;
|
||||||
const SYNC_VERSION = 5;
|
const SYNC_VERSION = 6;
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
appVersion: packageJson.version,
|
appVersion: packageJson.version,
|
||||||
|
@ -8,6 +8,7 @@ const messagingService = require('./messaging');
|
|||||||
const ApiToken = require('../entities/api_token');
|
const ApiToken = require('../entities/api_token');
|
||||||
const Branch = require('../entities/branch');
|
const Branch = require('../entities/branch');
|
||||||
const Note = require('../entities/note');
|
const Note = require('../entities/note');
|
||||||
|
const NoteContent = require('../entities/note_content');
|
||||||
const Attribute = require('../entities/attribute');
|
const Attribute = require('../entities/attribute');
|
||||||
const NoteRevision = require('../entities/note_revision');
|
const NoteRevision = require('../entities/note_revision');
|
||||||
const RecentNote = require('../entities/recent_note');
|
const RecentNote = require('../entities/recent_note');
|
||||||
@ -33,6 +34,7 @@ async function getHashes() {
|
|||||||
|
|
||||||
const hashes = {
|
const hashes = {
|
||||||
notes: await getHash(Note),
|
notes: await getHash(Note),
|
||||||
|
note_contents: await getHash(NoteContent),
|
||||||
branches: await getHash(Branch),
|
branches: await getHash(Branch),
|
||||||
note_revisions: await getHash(NoteRevision),
|
note_revisions: await getHash(NoteRevision),
|
||||||
recent_notes: await getHash(RecentNote),
|
recent_notes: await getHash(RecentNote),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user