fix: write the cron config after the app.json has been deleted

Without this, we try to write the config for the app even though it doesn't exist anymore, causing issues with deleting apps with invalid cron configs.
This commit is contained in:
Jose Diaz-Gonzalez
2025-06-19 01:09:15 -04:00
parent 6f0039ebf1
commit 776013b0f4
3 changed files with 6 additions and 10 deletions

View File

@@ -40,9 +40,6 @@ func main() {
case "post-delete":
appName := flag.Arg(0)
err = cron.TriggerPostDelete(appName)
case "pre-delete":
appName := flag.Arg(0)
err = cron.TriggerPreDelete(appName)
case "report":
appName := flag.Arg(0)
err = cron.ReportSingleApp(appName, "", "")