add settings to backup
This commit is contained in:
parent
ce9f621b8b
commit
99eafcb352
3 changed files with 25 additions and 11 deletions
|
@ -23,7 +23,7 @@ import { dataSource } from "./data-source";
|
|||
import BackupHelper from "./helpers/backupHelper";
|
||||
import SettingHelper from "./helpers/settingsHelper";
|
||||
dataSource.initialize().then(async () => {
|
||||
if (false && (await dataSource.createQueryRunner().hasTable("user"))) {
|
||||
if (await dataSource.createQueryRunner().hasTable("user")) {
|
||||
await BackupHelper.autoRestoreBackup().catch((err) => {
|
||||
console.log(`${new Date().toISOString()}: failed auto-restoring database`, err);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue