From 4299937a0473c3d7f84880389a3d218cf8c006ef Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Mar 2026 15:03:55 +0000 Subject: [PATCH 1/2] Initial plan From 974d42116c8302dd3fa93bea51ec81963a2c6a1e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Mar 2026 15:08:19 +0000 Subject: [PATCH 2/2] fix: call cascadeChildrenDelete before deleteRecord in bulk delete action Co-authored-by: SerVitasik <87546293+SerVitasik@users.noreply.github.com> --- adminforth/modules/configValidator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminforth/modules/configValidator.ts b/adminforth/modules/configValidator.ts index 598403a9..d23d1671 100644 --- a/adminforth/modules/configValidator.ts +++ b/adminforth/modules/configValidator.ts @@ -283,8 +283,8 @@ export default class ConfigValidator implements IConfigValidator { return; } - await connector.deleteRecord({ resource: res as AdminForthResource, recordId }); await cascadeChildrenDelete(res as AdminForthResource, recordId, { adminUser, response}, this.adminforth); + await connector.deleteRecord({ resource: res as AdminForthResource, recordId }); await Promise.all( (res.hooks.delete.afterSave).map(