mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 03:17:11 +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 () => {
|
return strapi.db.transaction(async () => {
|
||||||
// Delete stages
|
// 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
|
// Unassign all content types, this will migrate the content types to null
|
||||||
await workflowsContentTypes.migrate({
|
await workflowsContentTypes.migrate({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user