mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +00:00
fix: delete workflow
This commit is contained in:
parent
f1a8bf0de6
commit
88066d9d4a
@ -154,7 +154,7 @@ module.exports = ({ strapi }) => {
|
||||
|
||||
return strapi.db.transaction(async () => {
|
||||
// Delete stages
|
||||
await stageService.deleteMany(workflow.stages.map((stage) => stage.id));
|
||||
await stageService.deleteMany(workflow.stages);
|
||||
|
||||
// Unassign all content types, this will migrate the content types to null
|
||||
await workflowsContentTypes.migrate({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user