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, transaction,
}); });
await WorkflowTaskModel.bulkCreate( const records = tasks.map((item) => ({
tasks.map((item) => ({ type: MANUAL_TASK_TYPE,
type: MANUAL_TASK_TYPE, key: `${item.id}`,
key: `${item.id}`, userId: item.userId,
userId: item.userId, workflowId: item.workflowId,
workflowId: item.workflowId, }));
})), for (const record of records) {
{ await WorkflowTaskModel.upsert(record, {
transaction, transaction,
}, });
); }
}); });
} }
} }