mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
sync of options
This commit is contained in:
@@ -3,12 +3,12 @@
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
const auth = require('../../services/auth');
|
||||
const sql = require('../../services/sql');
|
||||
const options = require('../../services/options');
|
||||
const migration = require('../../services/migration');
|
||||
|
||||
router.get('', auth.checkApiAuthWithoutMigration, async (req, res, next) => {
|
||||
res.send({
|
||||
'db_version': parseInt(await sql.getOption('db_version')),
|
||||
'db_version': parseInt(await options.getOption('db_version')),
|
||||
'app_db_version': migration.APP_DB_VERSION
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user