Skip to content

Commit 5702e0c

Browse files
committed
Merge branch 'Phase4-TeamRolEmiSeriousWorks' of https://github.com/hurricanemark/Weather_Report_NodeJS_EJS_Express_WeatherBit_API into Phase4-TeamRolEmiSeriousWorks
2 parents 964c7d7 + e12ba77 commit 5702e0c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ app.listen(port, () => {
9090
}).on('error', (e) => {
9191
console.log('Error happened: ', e.message);
9292
// try different port
93-
try {
94-
port = process.env.PORT2;
95-
app.listen(port, () => {
96-
console.log(`TechRolEmi is listening on port ${port}`);
97-
})
98-
} catch (e) {
99-
console.log('Sorry, failed to launch.');
100-
}
93+
// try {
94+
// port = process.env.PORT2;
95+
// app.listen(port, () => {
96+
// console.log(`TechRolEmi is listening on port ${port}`);
97+
// })
98+
// } catch (e) {
99+
// console.log('Sorry, failed to launch.');
100+
// }
101101
});

routes/currency-exchange-routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ router.post('/', (req, res) => {
3333
res.render('pages/exchangeRate', { user: req.user, Cdata: cdat, amount: amnt, frC: Fc, toC: Tc, exchange: null, statusCode: 403, exchangeStatus: 'We apologize. Free monthly plan has reached max quota, exchange data will be available again on the 7th of next month. Please consider subscribe to a small monthly fee to continue normal usage.'}, ((err) => {
3434
console.log(err.message);
3535
}));
36-
} else if (data.result === 'success') {
36+
} else {
3737
console.log("Exchange data: " + data.time_last_update_utc);
3838
res.render('pages/exchangeRate', { user: req.user, Cdata: cdat, amount: amnt, frC: Fc, toC: Tc, exchange: data, statusCode: 200, exchangeStatus: 'Ok'});
3939
}

0 commit comments

Comments
 (0)