Skip to content

Commit a88833c

Browse files
committed
Co-authored-by: Tyler Coryell <[email protected]>
2 parents 1a99489 + f5f6f3d commit a88833c

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

electron/routes/data.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,14 @@ ipcMain.on(
9797
ipcMain.on('servicesRequest', async (message: Electron.IpcMainEvent) => {
9898
try {
9999
let result: any;
100-
console.log('Hi, inside data.ts - servicesRequest function. Fetching services...');
100+
console.log('Hi, inside data.ts line 97 - servicesRequest. Fetching services...');
101101

102102
// Mongo Database
103103
console.log('CurrentDataBase TYPE:', currentDatabaseType);
104104
if (currentDatabaseType === 'MongoDB') {
105105
// Get all documents from the services collection
106106
//>>>>>
107107
result = await ServicesModel.find();
108-
console.log('result of MongoQuery: ', result);
109108
}
110109

111110
// SQL Database
@@ -164,9 +163,8 @@ ipcMain.on('healthRequest', async (message: Electron.IpcMainEvent, service: stri
164163
let result: any;
165164
// Mongo Database
166165
if (currentDatabaseType === 'MongoDB') {
167-
console.log('database', currentDatabaseType, 'service', service);
168166
result = await mongoFetch(service);
169-
console.log('result line 169:', result)
167+
console.log('database', currentDatabaseType, 'service', service)
170168
}
171169

172170
// SQL Database

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@
2424
"node_modules",
2525
"dist"
2626
],
27-
"include": ["./electron/**/*", "./electron/**/*.json", "jest.config.ts"]
27+
"include": ["./electron/**/*", "./electron/**/*.json", "jest.config.ts", "./settings.json"]
2828
}

0 commit comments

Comments
 (0)