@nocobase/plugin-workflow-cc 2.1.0-alpha.46 → 2.1.0-alpha.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,20 +9,20 @@
9
9
 
10
10
  module.exports = {
11
11
  "react": "18.2.0",
12
- "@nocobase/client": "2.1.0-alpha.46",
13
- "@nocobase/plugin-workflow": "2.1.0-alpha.46",
12
+ "@nocobase/client": "2.1.0-alpha.47",
13
+ "@nocobase/plugin-workflow": "2.1.0-alpha.47",
14
14
  "react-i18next": "11.18.6",
15
15
  "antd-style": "3.7.1",
16
16
  "antd": "5.24.2",
17
17
  "react-router-dom": "6.30.1",
18
18
  "lodash": "4.18.1",
19
- "@nocobase/utils": "2.1.0-alpha.46",
20
- "@nocobase/plugin-ui-schema-storage": "2.1.0-alpha.46",
21
- "@nocobase/actions": "2.1.0-alpha.46",
22
- "@nocobase/server": "2.1.0-alpha.46",
23
- "@nocobase/database": "2.1.0-alpha.46",
24
- "@nocobase/data-source-manager": "2.1.0-alpha.46",
25
- "@nocobase/flow-engine": "2.1.0-alpha.46",
19
+ "@nocobase/utils": "2.1.0-alpha.47",
20
+ "@nocobase/plugin-ui-schema-storage": "2.1.0-alpha.47",
21
+ "@nocobase/actions": "2.1.0-alpha.47",
22
+ "@nocobase/server": "2.1.0-alpha.47",
23
+ "@nocobase/database": "2.1.0-alpha.47",
24
+ "@nocobase/data-source-manager": "2.1.0-alpha.47",
25
+ "@nocobase/flow-engine": "2.1.0-alpha.47",
26
26
  "@formily/shared": "2.3.7",
27
27
  "@formily/react": "2.3.7",
28
28
  "@ant-design/icons": "5.6.1",
@@ -32,7 +32,7 @@ module.exports = __toCommonJS(CCInstruction_exports);
32
32
  var import_utils = require("@nocobase/utils");
33
33
  var import_plugin_workflow = require("@nocobase/plugin-workflow");
34
34
  var import_constants = require("../common/constants");
35
- async function getUsers(config, { db, transaction }) {
35
+ async function getUsers(config, { db }) {
36
36
  const users = /* @__PURE__ */ new Set();
37
37
  const UserRepo = db.getRepository("users");
38
38
  for (const item of config) {
@@ -42,8 +42,7 @@ async function getUsers(config, { db, transaction }) {
42
42
  }
43
43
  const result = await UserRepo.find({
44
44
  ...item,
45
- fields: ["id"],
46
- transaction
45
+ fields: ["id"]
47
46
  });
48
47
  result.forEach((item2) => users.add(item2.id));
49
48
  } else {
@@ -63,7 +62,7 @@ class CCInstruction extends import_plugin_workflow.Instruction {
63
62
  upstreamId: (prevJob == null ? void 0 : prevJob.id) ?? null
64
63
  });
65
64
  const usersConfig = processor.getParsedValue(node.config.users ?? [], node.id).flat().filter(Boolean);
66
- const users = await getUsers(usersConfig, { db, transaction: processor.mainTransaction });
65
+ const users = await getUsers(usersConfig, { db });
67
66
  const RecordRepo = db.getRepository("workflowCcTasks");
68
67
  const title = node.config.title ? processor.getParsedValue(node.config.title, node.id) : node.title;
69
68
  const records = await RecordRepo.createMany({
@@ -75,8 +74,7 @@ class CCInstruction extends import_plugin_workflow.Instruction {
75
74
  workflowId: node.workflowId,
76
75
  status: import_constants.TASK_STATUS.UNREAD,
77
76
  title
78
- })),
79
- transaction: processor.mainTransaction
77
+ }))
80
78
  });
81
79
  return job;
82
80
  }
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "homepage.ru-RU": "https://docs-ru.nocobase.com/handbook/workflow-cc",
11
11
  "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/workflow-cc",
12
12
  "license": "Apache-2.0",
13
- "version": "2.1.0-alpha.46",
13
+ "version": "2.1.0-alpha.47",
14
14
  "main": "dist/server/index.js",
15
15
  "peerDependencies": {
16
16
  "@nocobase/actions": "2.x",
@@ -25,5 +25,5 @@
25
25
  "keywords": [
26
26
  "Workflow"
27
27
  ],
28
- "gitHead": "42b269944cdd1908d7a848c0af4936fe94c03bb7"
28
+ "gitHead": "66196b57f9043ea0ac6ebdafbc732bfb98af1396"
29
29
  }