@steedos/migrate 2.4.0-beta.21 → 2.4.0-beta.24
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: sunhaolin@hotoa.com
|
|
3
3
|
* @Date: 2023-01-10 17:18:23
|
|
4
4
|
* @LastEditors: sunhaolin@hotoa.com
|
|
5
|
-
* @LastEditTime: 2023-
|
|
5
|
+
* @LastEditTime: 2023-02-11 10:49:47
|
|
6
6
|
* @Description:
|
|
7
7
|
*/
|
|
8
8
|
'use strict'
|
|
@@ -24,7 +24,11 @@ module.exports.up = async function (next) {
|
|
|
24
24
|
await instanceColl.find({}).forEach(async function (insDoc) {
|
|
25
25
|
var docs = [];
|
|
26
26
|
var latestApproveIndexMap = {}
|
|
27
|
-
insDoc.traces.forEach(function (tDoc) {
|
|
27
|
+
insDoc.traces.forEach(function (tDoc, tIdx) {
|
|
28
|
+
if (tIdx == 0 && (!insDoc.distribute_from_instance && !insDoc.forward_from_instance)) {
|
|
29
|
+
// 只有分发或转发的申请单,开始节点生成instance_tasks
|
|
30
|
+
return
|
|
31
|
+
}
|
|
28
32
|
if (tDoc.approves) {
|
|
29
33
|
tDoc.approves.forEach(function (aDoc) {
|
|
30
34
|
if (aDoc.type == 'distribute' || aDoc.judge == 'relocated' || aDoc.judge == 'terminated' || aDoc.judge == 'reassigned') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/migrate",
|
|
3
|
-
"version": "2.4.0-beta.
|
|
3
|
+
"version": "2.4.0-beta.24",
|
|
4
4
|
"description": "Migration scripts for steedos",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
"publishConfig": {
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "ae19a048849a7d17c374f517df5b207f663bd6e4"
|
|
16
16
|
}
|