diff options
| author | Ab30657 <amar_ronaldo30657@yahoo.com> | 2021-04-11 18:44:08 +0545 |
|---|---|---|
| committer | Ab30657 <amar_ronaldo30657@yahoo.com> | 2021-04-11 18:44:08 +0545 |
| commit | 677ca8863aa1b5691658ef873cf9b0246d6f2d7f (patch) | |
| tree | 73427b0ec876cc8851fd75e8fb26b52ba3119065 /src/check.js | |
| parent | c7bf544a6d3bff90278a3b946988b3926b882fbc (diff) | |
| parent | 0359fe52000583df5a46c6dbc43b53f7f9819912 (diff) | |
| download | StreamFinder-677ca8863aa1b5691658ef873cf9b0246d6f2d7f.tar.xz StreamFinder-677ca8863aa1b5691658ef873cf9b0246d6f2d7f.zip | |
Merge branch 'main' of https://github.com/FivePixels/StreamFinder into amar
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 |
