Skip to content

Commit

Permalink
Merge pull request #8101 from JVickery-TBS/fix/datastore-records-dele…
Browse files Browse the repository at this point in the history
…te-action

Datastore Records Delete Action Fix
  • Loading branch information
wardi committed Mar 7, 2024
2 parents 658dacc + d3ea7ec commit f42547b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changes/8101.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
`datastore_records_delete` action now calls the `datastore_delete` action
via the toolkit for better frameworking.
2 changes: 1 addition & 1 deletion ckanext/datastore/logic/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ def datastore_records_delete(context: Context, data_dict: dict[str, Any]):
data_dict, errors = _validate(data_dict, schema, context)
if errors:
raise p.toolkit.ValidationError(errors)
return datastore_delete(context, data_dict)
return p.toolkit.get_action('datastore_delete')(context, data_dict)


@logic.side_effect_free
Expand Down

0 comments on commit f42547b

Please sign in to comment.