fix: newsletter receiver backup and env Defaults
This commit is contained in:
parent
c3e8b6b53b
commit
872e6ef9fe
5 changed files with 30 additions and 12 deletions
|
@ -23,7 +23,7 @@ import BackupHelper from "./helpers/backupHelper";
|
|||
dataSource.initialize().then(async () => {
|
||||
if ((BACKUP_AUTO_RESTORE as "true" | "false") == "true" && (await dataSource.createQueryRunner().hasTable("user"))) {
|
||||
await BackupHelper.autoRestoreBackup().catch((err) => {
|
||||
console.log(`${new Date().toISOString()}: failed auto-restoring database`);
|
||||
console.log(`${new Date().toISOString()}: failed auto-restoring database`, err);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue