-
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
For all entities from api section softDelete works correctly.
But for @strapi/plugin-users-permissions
SofDelete didn't add the fields
_softDeletedAt: Attribute.DateTime & Attribute.Private;
_softDeletedById: Attribute.Integer & Attribute.Private;
_softDeletedByType: Attribute.String & Attribute.Private;
But for queries (update up_users) apply.
Describe the solution you'd like
in the strapi-plugin-soft-delete/utils/plugin.ts
export const supportsContentType = (uid?: string) => {
return uid?.match(/^api::/) || false;// || !uid?.match(/^\w+::/) || false; // TODO: Deleting a compoment doesn't use the entityService
};
replace by
export const supportsContentType = (uid?: string) => {
return uid?.match(/^api::/) || uid?.match(/^plugin::/) || false;// || !uid?.match(/^\w+::/) || false; // TODO: Deleting a compoment doesn't use the entityService
};
kevinvugts
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request