Работа над BookUpdateChecker

This commit is contained in:
Book Pauk
2022-07-25 17:52:57 +07:00
parent 93bddfd05e
commit ed8be34c12
6 changed files with 55 additions and 6 deletions

View File

@@ -31,7 +31,15 @@ class JembaConnManager {
ayncExit.add(this.close.bind(this));
const serverNames = new Set();
for (const serverCfg of this.config.servers) {
serverNames.add(serverCfg.serverName);
}
for (const dbConfig of this.config.jembaDb) {
if (dbConfig.serverName && !serverNames.has(dbConfig.serverName))
continue;
const dbPath = `${this.config.dataDir}/db/${dbConfig.dbName}`;
//бэкап

View File

@@ -1,7 +1,7 @@
module.exports = {
up: [
['create', {
table: 'checked',
table: 'buc',
index: [
{field: 'queryTime', type: 'number'},
{field: 'checkTime', type: 'number'},
@@ -10,7 +10,7 @@ module.exports = {
],
down: [
['drop', {
table: 'checked'
table: 'buc'
}],
]
};