Adding a check to see if app backups feature is enabled.
This commit is contained in:
parent
e31ce3f8a9
commit
12d0187211
|
@ -110,6 +110,8 @@ async function deployApp(deployment: any, userId: string) {
|
||||||
|
|
||||||
// can't do this in test
|
// can't do this in test
|
||||||
if (!env.isTest()) {
|
if (!env.isTest()) {
|
||||||
|
// don't try this if feature isn't allowed, will error
|
||||||
|
if (!(await backups.isEnabled())) {
|
||||||
// trigger backup initially
|
// trigger backup initially
|
||||||
await backups.triggerAppBackup(
|
await backups.triggerAppBackup(
|
||||||
productionAppId,
|
productionAppId,
|
||||||
|
@ -119,6 +121,7 @@ async function deployApp(deployment: any, userId: string) {
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const config: any = {
|
const config: any = {
|
||||||
source: devAppId,
|
source: devAppId,
|
||||||
|
|
Loading…
Reference in New Issue