@budibase/backend-core 2.13.11 → 2.13.12

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/dist/index.js CHANGED
@@ -2766,10 +2766,12 @@ function getRedisConnectionDetails() {
2766
2766
  url = url[0];
2767
2767
  }
2768
2768
  const [host, port] = url.split(":");
2769
+ const portNumber = parseInt(port);
2769
2770
  return {
2770
2771
  host,
2771
2772
  password,
2772
- port: parseInt(port)
2773
+ // assume default port for redis if invalid found
2774
+ port: isNaN(portNumber) ? 6379 : portNumber
2773
2775
  };
2774
2776
  }
2775
2777
  function getRedisOptions() {