summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrealS1ant <trb.9900@gmail.com>2021-04-11 02:47:01 -0500
committerrealS1ant <trb.9900@gmail.com>2021-04-11 02:47:01 -0500
commit84133947193e67ab2c5de5a550af4c1b007bf2b3 (patch)
tree25ea3bcdc197b529da46776db1d85a370e36bf64 /src
parentf3d8acbc061e0d40018ace027080c895a04521a3 (diff)
downloadStreamFinder-84133947193e67ab2c5de5a550af4c1b007bf2b3.tar.xz
StreamFinder-84133947193e67ab2c5de5a550af4c1b007bf2b3.zip
minimal changes
Diffstat (limited to 'src')
-rw-r--r--src/app.js3
-rw-r--r--src/test.js14
2 files changed, 14 insertions, 3 deletions
diff --git a/src/app.js b/src/app.js
index b3c31af..1e24ad8 100644
--- a/src/app.js
+++ b/src/app.js
@@ -18,8 +18,7 @@ app.get('/api/performCheck', async (req, res) => {
return;
}
const { id, query, type } = req.query;
-
- console.log(`Performing check with ID: ${id} Query: ${query} and Type: ${query}`);
+ console.log(`Performing check with ID: ${id} Query: ${query} and Type: ${type}`);
res.status(200).json(await performCheck(id, query, type));
return;
res.status(200).json({
diff --git a/src/test.js b/src/test.js
index 6c10475..abfe9b0 100644
--- a/src/test.js
+++ b/src/test.js
@@ -2,4 +2,16 @@ const check = require('./check')
check.performCheck('387', 'Spongebob Squarepants', 'tv').then(res => {
console.log(res)
-}) \ No newline at end of file
+})
+check.performCheck('298618', 'The%20Flash', 'tv').then(res => {
+ console.log(res)
+})
+check.performCheck('298618', 'The Flash', 'tv').then(res => {
+ console.log(res)
+})
+check.performCheck('4607', 'Lost', 'tv').then(res => {
+ console.log(res)
+})
+check.performCheck('632357', 'The Unholy', 'movie').then(res => {
+ console.log(res)
+})