@dnax/core 0.73.1 → 0.73.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.
Files changed (2) hide show
  1. package/lib/collection.ts +33 -1
  2. package/package.json +1 -1
package/lib/collection.ts CHANGED
@@ -66,8 +66,40 @@ async function syncCollectionDatabase() {
66
66
  ?.listCollections()
67
67
  .toArray();
68
68
 
69
- //t.database.db.
69
+ // System collections
70
+ t.database.db
71
+ ?.collection("_etl_")
72
+ .createIndex({
73
+ createdAt: -1,
74
+ updatedAt: -1,
75
+ })
76
+ .catch();
70
77
 
78
+ t.database.db
79
+ ?.collection("_activity_")
80
+ .createIndex({
81
+ createdAt: -1,
82
+ updatedAt: -1,
83
+ })
84
+ .catch();
85
+
86
+ t.database.db
87
+ ?.collection("_activity_")
88
+ .createIndex({
89
+ "operation.type": 1,
90
+ })
91
+ .catch();
92
+
93
+ t.database.db
94
+ ?.collection("_activity_")
95
+ .createIndex({
96
+ "operation.target": 1,
97
+ })
98
+ .catch();
99
+
100
+ //__________
101
+
102
+ // local Collections
71
103
  if (t.database.driver == "mongodb") {
72
104
  const collections: (Collection & TimeSeriesCollection[]) | undefined =
73
105
  Cfg.collections?.filter((cn) => cn.tenant_id == t.id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.73.1",
3
+ "version": "0.73.2",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {},