Adding a check to see if app backups feature is enabled.
This commit is contained in:
parent
e31ce3f8a9
commit
12d0187211
|
@ -110,14 +110,17 @@ 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()) {
|
||||||
// trigger backup initially
|
// don't try this if feature isn't allowed, will error
|
||||||
await backups.triggerAppBackup(
|
if (!(await backups.isEnabled())) {
|
||||||
productionAppId,
|
// trigger backup initially
|
||||||
AppBackupTrigger.PUBLISH,
|
await backups.triggerAppBackup(
|
||||||
{
|
productionAppId,
|
||||||
createdBy: userId,
|
AppBackupTrigger.PUBLISH,
|
||||||
}
|
{
|
||||||
)
|
createdBy: userId,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const config: any = {
|
const config: any = {
|
||||||
|
|
Loading…
Reference in New Issue