@steedos/service-fields-indexs 2.3.2-beta.13 → 2.3.2-beta.15

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: 2022-02-28 09:25:03
4
4
  * @LastEditors: sunhaolin@hotoa.com
5
- * @LastEditTime: 2022-05-29 11:41:22
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
- db.flows._ensureIndex({
70
- "form": 1
71
- }, {
72
- background: true
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-05-29 11:46:57
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
- db.instances._ensureIndex({
13
- "submitter": 1
14
- }, {
15
- background: true
16
- });
17
- db.instances._ensureIndex({
18
- "applicant": 1
19
- }, {
20
- background: true
21
- });
22
- db.instances._ensureIndex({
23
- "outbox_users": 1
24
- }, {
25
- background: true
26
- });
27
- db.instances._ensureIndex({
28
- "inbox_users": 1
29
- }, {
30
- background: true
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
- db.instances._ensureIndex({
206
- "category": 1
207
- }, {
208
- background: true
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-05-29 11:50:10
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
- db.organizations._ensureIndex({
38
- "parents": 1
39
- }, {
40
- background: true
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
- db.space_users._ensureIndex({
43
- "manager": 1
44
- }, {
45
- background: true
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,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
- db.webhooks._ensureIndex({
3
- "flow": 1
4
- }, {
5
- background: true
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-beta.13",
3
+ "version": "2.3.2-beta.15",
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": "0ffb7e237da2ef2aeb0f44f051267483598c2033"
13
+ "gitHead": "222df35b60965f1ee48d343156ff6e67250cb98c"
14
14
  }