diff options
Diffstat (limited to 'src/check.js')
| -rw-r--r-- | src/check.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/check.js b/src/check.js index 0b52ece..2410e89 100644 --- a/src/check.js +++ b/src/check.js @@ -26,9 +26,11 @@ exports.performCheck = async function performCheck(id, query, type) { break; } if (result == null) { + console.log('no db entry found') await scraper.performSearch(id, query, type) } // (if it needed to be scraped, it now is, and its stored. next, we perform the database search for the newly saved entry) + console.log('start db search') var array = await performDatabaseSearch(id, type); // returns values await client.close(); return array; @@ -54,5 +56,6 @@ async function performDatabaseSearch(id, type) { break; } client.close() + console.log('db search finished') return [result.service, result.price] }
\ No newline at end of file |
