@steedos/service-fields-indexs 2.3.2-beta.8 → 2.3.2
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.
- package/meteor-collection-indexs/flows.object.js +10 -6
- package/meteor-collection-indexs/instances.object.js +46 -26
- package/meteor-collection-indexs/organizations.object.js +10 -6
- package/meteor-collection-indexs/space_users.object.js +16 -5
- package/meteor-collection-indexs/steedos_keyvalue.object.js +35 -15
- package/meteor-collection-indexs/webhooks.object.js +16 -5
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: sunhaolin@hotoa.com
|
|
3
3
|
* @Date: 2022-02-28 09:25:03
|
|
4
4
|
* @LastEditors: sunhaolin@hotoa.com
|
|
5
|
-
* @LastEditTime: 2022-
|
|
5
|
+
* @LastEditTime: 2022-11-30 14:10:20
|
|
6
6
|
* @Description:
|
|
7
7
|
*/
|
|
8
8
|
if (Meteor.isServer) {
|
|
@@ -66,11 +66,15 @@ if (Meteor.isServer) {
|
|
|
66
66
|
}, {
|
|
67
67
|
background: true
|
|
68
68
|
});
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
69
|
+
try {
|
|
70
|
+
db.flows._ensureIndex({
|
|
71
|
+
"form": 1
|
|
72
|
+
}, {
|
|
73
|
+
background: true
|
|
74
|
+
});
|
|
75
|
+
} catch (error) {
|
|
76
|
+
|
|
77
|
+
}
|
|
74
78
|
db.flows._ensureIndex({
|
|
75
79
|
"space": 1,
|
|
76
80
|
"form": 1,
|
|
@@ -2,33 +2,49 @@
|
|
|
2
2
|
* @Author: baozhoutao@hotoa.com
|
|
3
3
|
* @Date: 2022-02-28 09:25:03
|
|
4
4
|
* @LastEditors: sunhaolin@hotoa.com
|
|
5
|
-
* @LastEditTime: 2022-
|
|
5
|
+
* @LastEditTime: 2022-11-30 14:15:57
|
|
6
6
|
* @Description:
|
|
7
7
|
*/
|
|
8
8
|
if (Meteor.isServer) {
|
|
9
9
|
const objectql = require("@steedos/objectql");
|
|
10
10
|
const config = objectql.getSteedosConfig();
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
12
|
+
try {
|
|
13
|
+
db.instances._ensureIndex({
|
|
14
|
+
"submitter": 1
|
|
15
|
+
}, {
|
|
16
|
+
background: true
|
|
17
|
+
});
|
|
18
|
+
} catch (error) {
|
|
19
|
+
|
|
20
|
+
}
|
|
21
|
+
try {
|
|
22
|
+
db.instances._ensureIndex({
|
|
23
|
+
"applicant": 1
|
|
24
|
+
}, {
|
|
25
|
+
background: true
|
|
26
|
+
});
|
|
27
|
+
} catch (error) {
|
|
28
|
+
|
|
29
|
+
}
|
|
30
|
+
try {
|
|
31
|
+
db.instances._ensureIndex({
|
|
32
|
+
"outbox_users": 1
|
|
33
|
+
}, {
|
|
34
|
+
background: true
|
|
35
|
+
});
|
|
36
|
+
} catch (error) {
|
|
37
|
+
|
|
38
|
+
}
|
|
39
|
+
try {
|
|
40
|
+
db.instances._ensureIndex({
|
|
41
|
+
"inbox_users": 1
|
|
42
|
+
}, {
|
|
43
|
+
background: true
|
|
44
|
+
});
|
|
45
|
+
} catch (error) {
|
|
46
|
+
|
|
47
|
+
}
|
|
32
48
|
db.instances._ensureIndex({
|
|
33
49
|
"space": 1,
|
|
34
50
|
"is_deleted": 1
|
|
@@ -202,11 +218,15 @@ if (Meteor.isServer) {
|
|
|
202
218
|
}, {
|
|
203
219
|
background: true
|
|
204
220
|
});
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
221
|
+
try {
|
|
222
|
+
db.instances._ensureIndex({
|
|
223
|
+
"category": 1
|
|
224
|
+
}, {
|
|
225
|
+
background: true
|
|
226
|
+
});
|
|
227
|
+
} catch (error) {
|
|
228
|
+
|
|
229
|
+
}
|
|
210
230
|
db.instances._ensureIndex({
|
|
211
231
|
"record_ids.o": 1,
|
|
212
232
|
"record_ids.ids": 1
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: baozhoutao@hotoa.com
|
|
3
3
|
* @Date: 2022-02-28 09:25:03
|
|
4
4
|
* @LastEditors: sunhaolin@hotoa.com
|
|
5
|
-
* @LastEditTime: 2022-
|
|
5
|
+
* @LastEditTime: 2022-11-30 14:09:50
|
|
6
6
|
* @Description:
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -34,11 +34,15 @@ if (Meteor.isServer) {
|
|
|
34
34
|
}, {
|
|
35
35
|
background: true
|
|
36
36
|
});
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
try {
|
|
38
|
+
db.organizations._ensureIndex({
|
|
39
|
+
"parents": 1
|
|
40
|
+
}, {
|
|
41
|
+
background: true
|
|
42
|
+
});
|
|
43
|
+
} catch (error) {
|
|
44
|
+
|
|
45
|
+
}
|
|
42
46
|
db.organizations._ensureIndex({
|
|
43
47
|
"parents": 1,
|
|
44
48
|
"is_deleted": 1
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: sunhaolin@hotoa.com
|
|
3
|
+
* @Date: 2022-02-28 09:25:03
|
|
4
|
+
* @LastEditors: sunhaolin@hotoa.com
|
|
5
|
+
* @LastEditTime: 2022-11-30 14:10:02
|
|
6
|
+
* @Description:
|
|
7
|
+
*/
|
|
1
8
|
|
|
2
9
|
Meteor.startup(function () {
|
|
3
10
|
if (Meteor.isServer) {
|
|
@@ -39,11 +46,15 @@ Meteor.startup(function () {
|
|
|
39
46
|
}, {
|
|
40
47
|
background: true
|
|
41
48
|
});
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
49
|
+
try {
|
|
50
|
+
db.space_users._ensureIndex({
|
|
51
|
+
"manager": 1
|
|
52
|
+
}, {
|
|
53
|
+
background: true
|
|
54
|
+
});
|
|
55
|
+
} catch (error) {
|
|
56
|
+
|
|
57
|
+
}
|
|
47
58
|
db.space_users._ensureIndex({
|
|
48
59
|
"space": 1,
|
|
49
60
|
"created": 1
|
|
@@ -1,20 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: sunhaolin@hotoa.com
|
|
3
|
+
* @Date: 2022-02-28 09:25:03
|
|
4
|
+
* @LastEditors: sunhaolin@hotoa.com
|
|
5
|
+
* @LastEditTime: 2022-11-28 14:18:04
|
|
6
|
+
* @Description:
|
|
7
|
+
*/
|
|
1
8
|
|
|
2
9
|
if (Meteor.isServer) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
try {
|
|
11
|
+
db.steedos_keyvalues._ensureIndex({
|
|
12
|
+
"space": 1
|
|
13
|
+
}, {
|
|
14
|
+
background: true
|
|
15
|
+
});
|
|
16
|
+
} catch (error) {
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
try {
|
|
20
|
+
db.steedos_keyvalues._ensureIndex({
|
|
21
|
+
"user": 1
|
|
22
|
+
}, {
|
|
23
|
+
background: true
|
|
24
|
+
});
|
|
25
|
+
} catch (error) {
|
|
26
|
+
|
|
27
|
+
}
|
|
28
|
+
try {
|
|
29
|
+
db.steedos_keyvalues._ensureIndex({
|
|
30
|
+
"key": 1
|
|
31
|
+
}, {
|
|
32
|
+
background: true
|
|
33
|
+
});
|
|
34
|
+
} catch (error) {
|
|
35
|
+
|
|
36
|
+
}
|
|
37
|
+
|
|
18
38
|
db.steedos_keyvalues._ensureIndex({
|
|
19
39
|
"user": 1,
|
|
20
40
|
"space": 1,
|
|
@@ -1,7 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: sunhaolin@hotoa.com
|
|
3
|
+
* @Date: 2022-02-28 09:25:03
|
|
4
|
+
* @LastEditors: sunhaolin@hotoa.com
|
|
5
|
+
* @LastEditTime: 2022-11-30 14:09:20
|
|
6
|
+
* @Description:
|
|
7
|
+
*/
|
|
1
8
|
if (Meteor.isServer) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
9
|
+
try {
|
|
10
|
+
db.webhooks._ensureIndex({
|
|
11
|
+
"flow": 1
|
|
12
|
+
}, {
|
|
13
|
+
background: true
|
|
14
|
+
});
|
|
15
|
+
} catch (error) {
|
|
16
|
+
|
|
17
|
+
}
|
|
7
18
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-fields-indexs",
|
|
3
|
-
"version": "2.3.2
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"dependencies": {
|
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
13
|
-
"gitHead": "
|
|
13
|
+
"gitHead": "3aefe890a87dcdf231a132d180744ee37653dd7c"
|
|
14
14
|
}
|