Skip to content

Commit f5f6f3d

Browse files
authored
Merge pull request #2 from Tcoryell/FixDockerTyler
FixedBuild JSON.parse error
2 parents 66b05b5 + 233ae7c commit f5f6f3d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

electron/routes/data.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ ipcMain.on('connect', async (message: Electron.IpcMainEvent, username: string, i
6767
connectMongo(index, URI)
6868
.then((data) => {
6969
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')
7171
message.sender.send('databaseConnected', true);
7272
} else {
7373
console.log('Failed to connect to database "data.ts"')
@@ -94,15 +94,14 @@ ipcMain.on('connect', async (message: Electron.IpcMainEvent, username: string, i
9494
ipcMain.on('servicesRequest', async (message: Electron.IpcMainEvent) => {
9595
try {
9696
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...');
9898

9999
// Mongo Database
100100
console.log('CurrentDataBase TYPE:', currentDatabaseType);
101101
if (currentDatabaseType === 'MongoDB' ) {
102102
// Get all documents from the services collection
103103
//>>>>>
104104
result = await ServicesModel.find();
105-
console.log('result of MongoQuery: ', result);
106105
}
107106

108107
// SQL Database
@@ -162,8 +161,8 @@ ipcMain.on('healthRequest', async (message: Electron.IpcMainEvent, service: stri
162161

163162
// Mongo Database
164163
if (currentDatabaseType === 'MongoDB') {
165-
console.log('database', currentDatabaseType, 'service', service)
166164
result = await mongoFetch(service);
165+
console.log('database', currentDatabaseType, 'service', service)
167166
}
168167

169168
// SQL Database

tsconfig.json

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

0 commit comments

Comments
 (0)