@@ -97,7 +97,7 @@ ipcMain.on('servicesRequest', async (message: Electron.IpcMainEvent) => {
97
97
console . log ( 'Hi, inside data.ts line 97 - servicesRequest. Fetching services...' ) ;
98
98
99
99
// Mongo Database
100
- console . log ( 'CurrentDataBase TYPE:' , currentDatabaseType ) ;
100
+ console . log ( 'data.ts line 100 CurrentDataBase TYPE:' , currentDatabaseType ) ;
101
101
if ( currentDatabaseType === 'MongoDB' ) {
102
102
// Get all documents from the services collection
103
103
//>>>>>
@@ -161,8 +161,9 @@ ipcMain.on('healthRequest', async (message: Electron.IpcMainEvent, service: stri
161
161
162
162
// Mongo Database
163
163
if ( currentDatabaseType === 'MongoDB' ) {
164
+ console . log ( 'data.ts ln 164: database' , currentDatabaseType , 'service' , service )
164
165
result = await mongoFetch ( service ) ;
165
- console . log ( 'database ' , currentDatabaseType , ' service' , service )
166
+ console . log ( 'data.ts ln 166 result: ' , result , result [ 0 ] [ ` ${ service } ` ] [ 0 ] )
166
167
}
167
168
168
169
// SQL Database
@@ -174,7 +175,7 @@ ipcMain.on('healthRequest', async (message: Electron.IpcMainEvent, service: stri
174
175
// result = await pool.query(query);
175
176
// result = result.rows;
176
177
}
177
- console . log ( 'result data.ts line 177' , result , result [ 0 ] [ `orders-containerinfos` ] [ 0 ] )
178
+ console . log ( 'result data.ts line 177' , result )
178
179
// Async event emitter - send response'
179
180
180
181
message . sender . send ( 'healthResponse' , JSON . stringify ( result ) ) ;
0 commit comments