mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 01:36:24 +01:00
refactoring of password change and preparations for server side encryption
This commit is contained in:
@@ -8,8 +8,8 @@ const migration = require('../../services/migration');
|
||||
|
||||
router.get('', auth.checkApiAuthWithoutMigration, async (req, res, next) => {
|
||||
res.send({
|
||||
'db_version': parseInt(await options.getOption('db_version')),
|
||||
'app_db_version': migration.APP_DB_VERSION
|
||||
db_version: parseInt(await options.getOption('db_version')),
|
||||
app_db_version: migration.APP_DB_VERSION
|
||||
});
|
||||
});
|
||||
|
||||
@@ -17,7 +17,7 @@ router.post('', auth.checkApiAuthWithoutMigration, async (req, res, next) => {
|
||||
const migrations = await migration.migrate();
|
||||
|
||||
res.send({
|
||||
'migrations': migrations
|
||||
migrations: migrations
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user