@nocobase/plugin-workflow-sql 1.3.27-beta → 1.3.29-beta

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.
@@ -8,12 +8,12 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "1.3.27-beta",
12
- "@nocobase/plugin-workflow": "1.3.27-beta",
11
+ "@nocobase/client": "1.3.29-beta",
12
+ "@nocobase/plugin-workflow": "1.3.29-beta",
13
13
  "react": "18.2.0",
14
14
  "react-i18next": "11.18.6",
15
- "@nocobase/server": "1.3.27-beta",
16
- "@nocobase/plugin-workflow-test": "1.3.27-beta",
17
- "@nocobase/test": "1.3.27-beta",
18
- "@nocobase/utils": "1.3.27-beta"
15
+ "@nocobase/server": "1.3.29-beta",
16
+ "@nocobase/plugin-workflow-test": "1.3.29-beta",
17
+ "@nocobase/test": "1.3.29-beta",
18
+ "@nocobase/utils": "1.3.29-beta"
19
19
  };
@@ -43,11 +43,11 @@ class SQLInstruction_default extends import_plugin_workflow.Instruction {
43
43
  status: import_plugin_workflow.JOB_STATUS.RESOLVED
44
44
  };
45
45
  }
46
- const [result, meta] = await db.sequelize.query(sql, {
46
+ const [result = null, meta = null] = await db.sequelize.query(sql, {
47
47
  transaction: this.workflow.useDataSourceTransaction(dataSourceName, processor.transaction)
48
48
  // plain: true,
49
49
  // model: db.getCollection(node.config.collection).model
50
- });
50
+ }) ?? [];
51
51
  return {
52
52
  result: node.config.withMeta ? [result, meta] : result,
53
53
  status: import_plugin_workflow.JOB_STATUS.RESOLVED
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "工作流:SQL 节点",
5
5
  "description": "Execute SQL statements in workflow.",
6
6
  "description.zh-CN": "可用于在工作流中对数据库执行任意 SQL 语句。",
7
- "version": "1.3.27-beta",
7
+ "version": "1.3.29-beta",
8
8
  "license": "AGPL-3.0",
9
9
  "main": "./dist/server/index.js",
10
10
  "homepage": "https://docs.nocobase.com/handbook/workflow-sql",
@@ -21,7 +21,7 @@
21
21
  "@nocobase/server": "1.x",
22
22
  "@nocobase/test": "1.x"
23
23
  },
24
- "gitHead": "a57bb75ee5cfb36ad909faac8e7949f2ed86cb77",
24
+ "gitHead": "89c421d4050d5310f089bfad31ce4ffeb3848104",
25
25
  "keywords": [
26
26
  "Workflow"
27
27
  ]