1
0
Fork 0
mirror of synced 2024-06-21 11:51:00 +12:00

Fixing issue discovered by test case.

This commit is contained in:
Michael Drury 2021-11-17 21:33:35 +00:00
parent 76c9637f62
commit 0b6eb6b71d

View file

@ -320,7 +320,7 @@ exports.delete = async ctx => {
if (!env.isTest() && !ctx.query.unpublish) {
await deleteApp(ctx.params.appId)
}
if (ctx.query.unpublish) {
if (ctx.query && ctx.query.unpublish) {
await cleanupAutomations(ctx.params.appId)
}
// make sure the app/role doesn't stick around after the app has been deleted