Skip to content

Commit b4d8aa1

Browse files
committed
fix: resolve copilot comment
1 parent c3a7a73 commit b4d8aa1

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

adminforth/modules/configValidator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ export default class ConfigValidator implements IConfigValidator {
283283
}
284284

285285
const restApi = new AdminForthRestAPI (this.adminforth)
286-
restApi.deleteWithCascade(res as AdminForthResource, recordId, { adminUser, response, body: null,});
286+
await restApi.deleteWithCascade(res as AdminForthResource, recordId, { adminUser, response, body: null,});
287287

288288
await Promise.all(
289289
(res.hooks.delete.afterSave).map(

adminforth/modules/restApi.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ export async function interpretResource(
126126
export default class AdminForthRestAPI implements IAdminForthRestAPI {
127127

128128
adminforth: IAdminForth;
129-
static deleteWithCascade: any;
130-
129+
131130
constructor(adminforth: IAdminForth) {
132131
this.adminforth = adminforth;
133132
}

0 commit comments

Comments
 (0)