Добавлено отображение версии БД в статистику

This commit is contained in:
Book Pauk
2022-10-22 19:50:51 +07:00
parent 12e5c32578
commit 8d5792d456
3 changed files with 8 additions and 6 deletions

View File

@@ -2,10 +2,6 @@ const fs = require('fs-extra');
const utils = require('./utils');
//поправить в случае, если были критические изменения в DbCreator
//иначе будет рассинхронизация между сервером и клиентом на уровне БД
const dbCreatorVersion = '3';
class InpxHashCreator {
constructor(config) {
this.config = config;
@@ -18,7 +14,7 @@ class InpxHashCreator {
if (await fs.pathExists(config.inpxFilterFile))
inpxFilterHash = await utils.getFileHash(config.inpxFilterFile, 'sha256', 'hex');
const joinedHash = dbCreatorVersion + inpxFilterHash +
const joinedHash = this.config.dbVersion + inpxFilterHash +
await utils.getFileHash(config.inpxFile, 'sha256', 'hex');
return utils.getBufHash(joinedHash, 'sha256', 'hex');