@@ -67,7 +67,7 @@ ipcMain.on('connect', async (message: Electron.IpcMainEvent, username: string, i
67
67
connectMongo ( index , URI )
68
68
. then ( ( data ) => {
69
69
if ( data ) {
70
- console . log ( 'Connected to user provided MongoDB database " data.ts" ' )
70
+ console . log ( 'Connected to user provided MongoDB database in line 70 data.ts' )
71
71
message . sender . send ( 'databaseConnected' , true ) ;
72
72
} else {
73
73
console . log ( 'Failed to connect to database "data.ts"' )
@@ -94,15 +94,14 @@ ipcMain.on('connect', async (message: Electron.IpcMainEvent, username: string, i
94
94
ipcMain . on ( 'servicesRequest' , async ( message : Electron . IpcMainEvent ) => {
95
95
try {
96
96
let result : any ;
97
- console . log ( 'Hi, inside data.ts - servicesRequest function . Fetching services...' ) ;
97
+ console . log ( 'Hi, inside data.ts line 97 - servicesRequest. Fetching services...' ) ;
98
98
99
99
// Mongo Database
100
100
console . log ( 'CurrentDataBase TYPE:' , currentDatabaseType ) ;
101
101
if ( currentDatabaseType === 'MongoDB' ) {
102
102
// Get all documents from the services collection
103
103
//>>>>>
104
104
result = await ServicesModel . find ( ) ;
105
- console . log ( 'result of MongoQuery: ' , result ) ;
106
105
}
107
106
108
107
// SQL Database
@@ -162,8 +161,8 @@ ipcMain.on('healthRequest', async (message: Electron.IpcMainEvent, service: stri
162
161
163
162
// Mongo Database
164
163
if ( currentDatabaseType === 'MongoDB' ) {
165
- console . log ( 'database' , currentDatabaseType , 'service' , service )
166
164
result = await mongoFetch ( service ) ;
165
+ console . log ( 'database' , currentDatabaseType , 'service' , service )
167
166
}
168
167
169
168
// SQL Database
0 commit comments