fix: delete workflow

This commit is contained in:
Marc-Roig 2023-08-08 10:58:01 +02:00
parent f1a8bf0de6
commit 88066d9d4a
No known key found for this signature in database
GPG Key ID: FB4E2C43A0BEE249

View File

@ -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({