@tmlmobilidade/interfaces 20260616.2252.19 → 20260617.1703.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.
|
@@ -27,7 +27,7 @@ class PCGIDBLegacyClass {
|
|
|
27
27
|
readPreference: 'secondaryPreferred',
|
|
28
28
|
serverSelectionTimeoutMS: 10_000,
|
|
29
29
|
};
|
|
30
|
-
Logger.info('Connecting to PCGIDB Legacy...');
|
|
30
|
+
Logger.info({ message: 'Connecting to PCGIDB Legacy...' });
|
|
31
31
|
try {
|
|
32
32
|
// Connect to the MongoDB database
|
|
33
33
|
const mongoConnector = new MongoConnector(pcgidbLegacyConnectionString, mongoClientOptions);
|
|
@@ -109,7 +109,7 @@ class PCGIDBLegacyClass {
|
|
|
109
109
|
if (!GLOBAL_PCGIDB_TUNNEL_INSTANCE) {
|
|
110
110
|
GLOBAL_PCGIDB_TUNNEL_INSTANCE = new SshTunnelService(sshConfig, sshOptions);
|
|
111
111
|
}
|
|
112
|
-
Logger.info('Setting up SSH Tunnel for PCGIDB Legacy...');
|
|
112
|
+
Logger.info({ message: 'Setting up SSH Tunnel for PCGIDB Legacy...' });
|
|
113
113
|
const sshTunnelConnection = await GLOBAL_PCGIDB_TUNNEL_INSTANCE.connect();
|
|
114
114
|
//
|
|
115
115
|
// Construct the PCGIDB connection string using the SSH Tunnel local address
|
|
@@ -27,7 +27,7 @@ class PCGIDBTicketingClass {
|
|
|
27
27
|
readPreference: 'secondaryPreferred',
|
|
28
28
|
serverSelectionTimeoutMS: 10_000,
|
|
29
29
|
};
|
|
30
|
-
Logger.info('Connecting to PCGIDB Ticketing...');
|
|
30
|
+
Logger.info({ message: 'Connecting to PCGIDB Ticketing...' });
|
|
31
31
|
try {
|
|
32
32
|
// Connect to the MongoDB database
|
|
33
33
|
const mongoConnector = new MongoConnector(pcgidbTicketingConnectionString, mongoClientOptions);
|
|
@@ -108,7 +108,7 @@ class PCGIDBTicketingClass {
|
|
|
108
108
|
if (!GLOBAL_PCGIDB_TUNNEL_INSTANCE) {
|
|
109
109
|
GLOBAL_PCGIDB_TUNNEL_INSTANCE = new SshTunnelService(sshConfig, sshOptions);
|
|
110
110
|
}
|
|
111
|
-
Logger.info('Setting up SSH Tunnel for PCGIDB Ticketing...');
|
|
111
|
+
Logger.info({ message: 'Setting up SSH Tunnel for PCGIDB Ticketing...' });
|
|
112
112
|
const sshTunnelConnection = await GLOBAL_PCGIDB_TUNNEL_INSTANCE.connect();
|
|
113
113
|
//
|
|
114
114
|
// Construct the PCGIDB connection string using the SSH Tunnel local address
|
|
@@ -28,7 +28,7 @@ class PCGIDBValidationsClass {
|
|
|
28
28
|
readPreference: 'secondaryPreferred',
|
|
29
29
|
serverSelectionTimeoutMS: 10_000,
|
|
30
30
|
};
|
|
31
|
-
Logger.info('Connecting to PCGIDB Validations...');
|
|
31
|
+
Logger.info({ message: 'Connecting to PCGIDB Validations...' });
|
|
32
32
|
try {
|
|
33
33
|
// Connect to the MongoDB database
|
|
34
34
|
const mongoConnector = new MongoConnector(pcgidbValidationsConnectionString, mongoClientOptions);
|
|
@@ -110,7 +110,7 @@ class PCGIDBValidationsClass {
|
|
|
110
110
|
if (!GLOBAL_PCGIDB_TUNNEL_INSTANCE) {
|
|
111
111
|
GLOBAL_PCGIDB_TUNNEL_INSTANCE = new SshTunnelService(sshConfig, sshOptions);
|
|
112
112
|
}
|
|
113
|
-
Logger.info('Setting up SSH Tunnel for PCGIDB Validations...');
|
|
113
|
+
Logger.info({ message: 'Setting up SSH Tunnel for PCGIDB Validations...' });
|
|
114
114
|
const sshTunnelConnection = await GLOBAL_PCGIDB_TUNNEL_INSTANCE.connect();
|
|
115
115
|
//
|
|
116
116
|
// Construct the PCGIDB connection string using the SSH Tunnel local address
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* * */
|
|
2
2
|
import { MongoCollectionClass } from '../../common/mongo-collection.js';
|
|
3
|
-
import {
|
|
3
|
+
import { HTTP_STATUS, HttpException } from '@tmlmobilidade/consts';
|
|
4
4
|
import { Dates } from '@tmlmobilidade/dates';
|
|
5
5
|
import { CreateRideAcceptanceSchema, UpdateRideAcceptanceSchema } from '@tmlmobilidade/types';
|
|
6
6
|
import { asyncSingletonProxy, compareObjects, flattenObject } from '@tmlmobilidade/utils';
|