Skip to content

Commit f778c99

Browse files
author
Vikas Agarwal
committed
Trying to read Boolean variable correctly via config module
1 parent ca54df2 commit f778c99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/projectReports/getReport.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = [
1818
const reportName = req.query.reportName;
1919

2020

21-
if (config.lookerConfig.USE_MOCK) {
21+
if (config.lookerConfig.USE_MOCK === 'true') {
2222
req.log.info('using mock');
2323
// using mock
2424
return mock(projectId, reportName, req, res);

0 commit comments

Comments
 (0)