Skip to content

Commit 8ef2973

Browse files
committed
fix: delete strategy check
1 parent a300f83 commit 8ef2973

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

adminforth/modules/restApi.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1482,8 +1482,6 @@ export default class AdminForthRestAPI implements IAdminForthRestAPI {
14821482
for (const childRecord of childRecords) {
14831483
await this.adminforth.resource(childRes.resourceId).update(childRecord.id, {[foreignResourceColumn.name]: null});
14841484
}
1485-
} else {
1486-
return { error: `Wrong onDelete strategy: ${onDeleteStrategy}` };
14871485
}
14881486
}
14891487
}

0 commit comments

Comments
 (0)