@nocobase/plugin-workflow-aggregate 1.7.0-beta.3 → 1.7.0-beta.5

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.
@@ -12,14 +12,14 @@ module.exports = {
12
12
  "antd": "5.12.8",
13
13
  "react": "18.2.0",
14
14
  "@ant-design/icons": "5.6.1",
15
- "@nocobase/client": "1.7.0-beta.3",
16
- "@nocobase/plugin-workflow": "1.7.0-beta.3",
15
+ "@nocobase/client": "1.7.0-beta.5",
16
+ "@nocobase/plugin-workflow": "1.7.0-beta.5",
17
17
  "react-i18next": "11.18.6",
18
18
  "mathjs": "10.6.4",
19
- "@nocobase/data-source-manager": "1.7.0-beta.3",
20
- "@nocobase/database": "1.7.0-beta.3",
21
- "@nocobase/server": "1.7.0-beta.3",
22
- "@nocobase/plugin-workflow-test": "1.7.0-beta.3",
23
- "@nocobase/test": "1.7.0-beta.3",
24
- "@nocobase/utils": "1.7.0-beta.3"
19
+ "@nocobase/data-source-manager": "1.7.0-beta.5",
20
+ "@nocobase/database": "1.7.0-beta.5",
21
+ "@nocobase/server": "1.7.0-beta.5",
22
+ "@nocobase/plugin-workflow-test": "1.7.0-beta.5",
23
+ "@nocobase/test": "1.7.0-beta.5",
24
+ "@nocobase/utils": "1.7.0-beta.5"
25
25
  };
@@ -1,11 +1,13 @@
1
1
  {
2
- "Aggregate": "Aggregate",
3
- "Counting, summing, finding maximum, minimum, and average values for multiple records of a collection or associated data of a record.": "Counting, summing, finding maximum, minimum, and average values for multiple records of a collection or associated data of a record.",
4
- "Aggregator function": "Aggregator function",
5
- "Target type": "Target type",
6
- "Data of collection": "Data of collection",
7
- "Data of associated collection": "Data of associated collection",
8
- "Field to aggregate": "Field to aggregate",
9
- "Distinct": "Distinct",
10
- "Query result": "Query result"
2
+ "Aggregate": "Totaal",
3
+ "Counting, summing, finding maximum, minimum, and average values for multiple records of a collection or associated data of a record.": "Tellen, optellen, maximum-, minimum- en gemiddelde waarden vinden voor meerdere records van een collectie of geassocieerde gegevens van een record.",
4
+ "Counting, summing, finding maximum, minimum, and average values for multiple records of a collection or associated data of a record.": "Het tellen, optellen, maximum-, minimum- en gemiddelde waarden berekenen voor meerdere records van een collectie of geassocieerde gegevens van een record.",
5
+ "Aggregate function": "Aggregatiefunctie",
6
+ "Counting, summing, finding maximum, minimum, and average values for multiple records of a collection or associated data of a record.": "Het tellen, optellen, maximum-, minimum- en gemiddelde waarden berekenen voor meerdere records van een collectie of geassocieerde gegevens van een record.",
7
+ "Aggregator function": "Aggregatorfunctie",
8
+ "Target": "Doel",
9
+ "Target type": "Doeltype",
10
+ "Counting, summing, finding maximum, minimum, and average values for multiple records of a collection or associated data of a record.": "Het tellen, optellen, het vinden van maximale, minimale en gemiddelde waarden voor meerdere records van een collectie of geassocieerde gegevens van een record.",
11
+ "Data of collection or associated record": "Gegevens van collectie of geassocieerd record",
12
+ "Query result": "Queryresultaat"
11
13
  }
@@ -62,7 +62,7 @@ class AggregateInstruction_default extends import_plugin_workflow.Instruction {
62
62
  transaction: this.workflow.useDataSourceTransaction(dataSourceName, processor.transaction)
63
63
  });
64
64
  return {
65
- result: (0, import_mathjs.round)(options.dataType === import_database.DataTypes.DOUBLE ? Number(result) : result, 14),
65
+ result: (0, import_mathjs.round)((options.dataType === import_database.DataTypes.DOUBLE ? Number(result) : result) || 0, 14),
66
66
  status: import_plugin_workflow.JOB_STATUS.RESOLVED
67
67
  };
68
68
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "工作流:聚合查询节点",
5
5
  "description": "Used to aggregate data against the database in workflow, such as: statistics, sum, average, etc.",
6
6
  "description.zh-CN": "可用于在工作流中对数据库进行聚合查询,如:统计数量、求和、平均值等。",
7
- "version": "1.7.0-beta.3",
7
+ "version": "1.7.0-beta.5",
8
8
  "license": "AGPL-3.0",
9
9
  "main": "./dist/server/index.js",
10
10
  "homepage": "https://docs.nocobase.com/handbook/workflow-aggregate",
@@ -22,7 +22,7 @@
22
22
  "@nocobase/server": "1.x",
23
23
  "@nocobase/test": "1.x"
24
24
  },
25
- "gitHead": "8d52cb1d366a968f87c1cd3f98f55f24be3056a5",
25
+ "gitHead": "d95f10c4f23f2f2ee245880b4e900854c40bd114",
26
26
  "keywords": [
27
27
  "Workflow"
28
28
  ]