Compare commits

..

3 Commits
0.6.0 ... 0.6.1

Author SHA1 Message Date
Book Pauk
153b635bdb Merge branch 'release/0.6.1' 2019-03-24 12:15:05 +07:00
Book Pauk
80af72465e Версия 0.6.1, поправлен баг 2019-03-24 12:14:24 +07:00
Book Pauk
a91a8f9993 Merge tag '0.6.0' into develop
0.6.0
2019-03-24 12:07:41 +07:00
2 changed files with 3 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "Liberama",
"version": "0.6.0",
"version": "0.6.1",
"engines": {
"node": ">=10.0.0"
},

View File

@@ -22,7 +22,8 @@ class ConnManager {
const dbFileName = this.config.dataDir + '/' + poolConfig.fileName;
//бэкап
await fs.copy(dbFileName, `${dbFileName}.bak`);
if (await fs.pathExists(dbFileName))
await fs.copy(dbFileName, `${dbFileName}.bak`);
const connPool = new SqliteConnectionPool();
await connPool.open(poolConfig.connCount, dbFileName);