1
0
Fork 0
mirror of synced 2024-09-11 15:08:05 +12:00

Adding a check to see if app backups feature is enabled.

This commit is contained in:
mike12345567 2022-10-24 13:33:36 +01:00
parent 5340b49d6b
commit bc2d499625

View file

@ -110,6 +110,8 @@ async function deployApp(deployment: any, userId: string) {
// can't do this in test
if (!env.isTest()) {
// don't try this if feature isn't allowed, will error
if (!(await backups.isEnabled())) {
// trigger backup initially
await backups.triggerAppBackup(
productionAppId,
@ -119,6 +121,7 @@ async function deployApp(deployment: any, userId: string) {
}
)
}
}
const config: any = {
source: devAppId,