mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
sync of options
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
const sql = require('../../services/sql');
|
||||
const options = require('../../services/options');
|
||||
const auth = require('../../services/auth');
|
||||
const sync = require('../../services/sync');
|
||||
const audit_category = require('../../services/audit_category');
|
||||
@@ -31,7 +32,7 @@ router.post('', auth.checkApiAuth, async (req, res, next) => {
|
||||
let changesToPushCount = 0;
|
||||
|
||||
if (sync.isSyncSetup) {
|
||||
const lastSyncedPush = await sql.getOption('last_synced_push');
|
||||
const lastSyncedPush = await options.getOption('last_synced_push');
|
||||
changesToPushCount = await sql.getSingleValue("SELECT COUNT(*) FROM sync WHERE id > ?", [lastSyncedPush]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user