@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 +3 -1
- package/dist/index.js.map +2 -2
- package/dist/index.js.meta.json +1 -1
- package/dist/package.json +4 -4
- package/dist/src/redis/utils.js +3 -1
- package/dist/src/redis/utils.js.map +1 -1
- package/package.json +4 -4
- package/src/db/tests/index.spec.js +0 -1
- package/src/redis/utils.ts +3 -1
- package/tests/core/users/users.spec.js +9 -10
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
|
|
2773
|
+
// assume default port for redis if invalid found
|
|
2774
|
+
port: isNaN(portNumber) ? 6379 : portNumber
|
|
2773
2775
|
};
|
|
2774
2776
|
}
|
|
2775
2777
|
function getRedisOptions() {
|