@tmlmobilidade/interfaces 20260217.220.4 → 20260217.1056.55
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.
|
@@ -24,7 +24,6 @@ class PCGIDBLegacyClass {
|
|
|
24
24
|
// Get the database URI from environment variables
|
|
25
25
|
const mongoClientOptions = {
|
|
26
26
|
connectTimeoutMS: 10_000,
|
|
27
|
-
directConnection: true,
|
|
28
27
|
maxPoolSize: 20,
|
|
29
28
|
minPoolSize: 2,
|
|
30
29
|
readPreference: 'secondaryPreferred',
|
|
@@ -122,7 +121,7 @@ class PCGIDBLegacyClass {
|
|
|
122
121
|
if (!localAddress || typeof localAddress !== 'object') {
|
|
123
122
|
throw new Error('Failed to retrieve the SSH tunnel address for PCGIDB Legacy.');
|
|
124
123
|
}
|
|
125
|
-
return `mongodb://${process.env.PCGIDB_LEGACY_USER}:${process.env.PCGIDB_LEGACY_PASSWORD}@localhost:${localAddress.port}
|
|
124
|
+
return `mongodb://${process.env.PCGIDB_LEGACY_USER}:${process.env.PCGIDB_LEGACY_PASSWORD}@localhost:${localAddress.port}/?directConnection=true`;
|
|
126
125
|
//
|
|
127
126
|
}
|
|
128
127
|
}
|