prostgles-server 2.0.156 → 2.0.157
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/package.json
CHANGED
package/tests/client/PID.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
12615
|
|
@@ -133,8 +133,8 @@ async function client_only(db, auth, log, methods) {
|
|
|
133
133
|
latest: await db.planes.findOne({}, { orderBy: { last_updated: -1 } }),
|
|
134
134
|
};
|
|
135
135
|
const syncCounts = {
|
|
136
|
-
x10: sync?.getItems().filter(d => d.x == 10),
|
|
137
|
-
x20: sync?.getItems().filter(d => d.x == 20),
|
|
136
|
+
x10: sync?.getItems().filter(d => d.x == 10).length,
|
|
137
|
+
x20: sync?.getItems().filter(d => d.x == 20).length,
|
|
138
138
|
latest: sync?.getItems()?.sort((a, b) => +b.last_updated - +a.last_updated)[0],
|
|
139
139
|
};
|
|
140
140
|
const msg = "Replication test failed due to taking longer than " + msLimit + "ms \n " + JSON.stringify({ dbCounts, syncCounts }, null, 2);
|
|
@@ -153,8 +153,8 @@ export default async function client_only(db: DBHandlerClient, auth: Auth, log:
|
|
|
153
153
|
latest: await db.planes.findOne({}, { orderBy: { last_updated: -1 } }),
|
|
154
154
|
}
|
|
155
155
|
const syncCounts = {
|
|
156
|
-
x10: sync?.getItems().filter(d => d.x == 10),
|
|
157
|
-
x20: sync?.getItems().filter(d => d.x == 20),
|
|
156
|
+
x10: sync?.getItems().filter(d => d.x == 10).length,
|
|
157
|
+
x20: sync?.getItems().filter(d => d.x == 20).length,
|
|
158
158
|
latest: sync?.getItems()?.sort((a, b) => +b.last_updated - +a.last_updated )[0],
|
|
159
159
|
}
|
|
160
160
|
const msg = "Replication test failed due to taking longer than " + msLimit + "ms \n " + JSON.stringify({ dbCounts, syncCounts }, null, 2);
|