We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 343b1f4 commit e5bf5eaCopy full SHA for e5bf5ea
packages/database/src/core/util/libs/.parser.ts.swp
0 Bytes
packages/database/src/core/util/libs/parser.ts
@@ -181,11 +181,10 @@ export const parseDatabaseURL = function(
181
if (dotInd === -1) {
182
return; // Not a valid URL.
183
}
184
- const hostFirstPart = host.substring(0, dotInd);
185
- domain = host.substring(dotInd + 1);
186
// Normalize namespaces to lowercase to share storage / connection.
187
- subdomain = hostFirstPart.toLowerCase();
+ subdomain = host.substring(0, dotInd).toLowerCase();
188
namespace = subdomain;
+ domain = host.substring(dotInd + 1);
189
190
// Always treat the value of the `ns` as the namespace name if it is present.
191
if ('ns' in queryParams) {
0 commit comments