|
@@ -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');
|