feat: Remove associated execution steps while deleting the step

This commit is contained in:
Faruk AYDIN
2022-09-26 16:47:46 +03:00
committed by Ali BARIN
parent 9429031a61
commit e2f04441c5

View File

@@ -19,8 +19,7 @@ const deleteStep = async (
})
.throwIfNotFound();
if (!step) return;
await step.$relatedQuery('executionSteps').delete();
await step.$query().delete();
const nextSteps = await step.flow