mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 20:36:13 +01:00
yet another attempt at fixing reporting sync changes to client
This commit is contained in:
@@ -4,10 +4,12 @@ const express = require('express');
|
||||
const router = express.Router();
|
||||
const auth = require('../services/auth');
|
||||
const source_id = require('../services/source_id');
|
||||
const sql = require('../services/sql');
|
||||
|
||||
router.get('', auth.checkAuth, async (req, res, next) => {
|
||||
res.render('index', {
|
||||
sourceId: await source_id.generateSourceId()
|
||||
sourceId: await source_id.generateSourceId(),
|
||||
maxSyncIdAtLoad: await sql.getSingleValue("SELECT MAX(id) FROM sync")
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user