Merge branch 'next' into develop

This commit is contained in:
nocobase[bot] 2025-03-10 16:00:55 +00:00
commit c6db5a73dd

View File

@ -26,17 +26,17 @@ export default class extends Migration {
},
transaction,
});
await WorkflowTaskModel.bulkCreate(
tasks.map((item) => ({
const records = tasks.map((item) => ({
type: MANUAL_TASK_TYPE,
key: `${item.id}`,
userId: item.userId,
workflowId: item.workflowId,
})),
{
}));
for (const record of records) {
await WorkflowTaskModel.upsert(record, {
transaction,
},
);
});
}
});
}
}