webiny / webiny-js

Open-source serverless enterprise CMS. Includes a headless CMS, page builder, form builder, and file manager. Easy to customize and expand. Deploys to AWS.
https://www.webiny.com
Other
7.24k stars 590 forks source link

fix(api-aco): verify existence of identity while emptying the trash bins #4101

Closed leopuleo closed 2 months ago

leopuleo commented 2 months ago

Changes

When FLP is enabled, we were encountering the error below while trying to list the entries to be deleted:

Error: Cannot read properties of undefined (reading 'type')

We were not defining any identity when emptying the trash bin.

In the same PR, we corrected the context type name from HeadlessCmsTasksContext to HcmsTasksContext in the test files.

Testing

This has been tested manually.

Documentation

None available.