presidium-db-client-server 0.6.5 → 0.6.6

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/errorHandler.js CHANGED
@@ -9,7 +9,6 @@
9
9
  * ```
10
10
  */
11
11
  function errorHandler(error, request, response) {
12
- console.error(error)
13
12
  response.writeHead(error.code ?? 500, {
14
13
  "Content-Type": "text/plain",
15
14
  })
@@ -14,7 +14,7 @@ async function loadBalancerHandler(request, response) {
14
14
  const tableName = request.pathSegments[0]
15
15
  const key = request.headers["key"]
16
16
 
17
- let index = this.hash(tableName, key)
17
+ let index = this.hash(tableName, key, this.serverIps.length)
18
18
  if (typeof index.then == "function") {
19
19
  index = await index
20
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "presidium-db-client-server",
3
- "version": "0.6.5",
3
+ "version": "0.6.6",
4
4
  "description": "Presidium DB client and server library",
5
5
  "author": "Richard Tong",
6
6
  "license": "CFOSS",