diff options
| author | HumairAK <humair88@hotmail.com> | 2016-07-24 01:06:00 +0000 |
|---|---|---|
| committer | HumairAK <humair88@hotmail.com> | 2016-07-24 01:06:00 +0000 |
| commit | 3dc5f9d58a548dcace9e9367caa5d0e18eacae92 (patch) | |
| tree | fdacbfadf0ec519cb9fcd9fdb8aa44180db4f55e /routes | |
| parent | 8f6bfa9244411274c4f6a489b2571a423f7d8548 (diff) | |
adjusted callback for questions route
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/index.js b/routes/index.js index d3c55e6..359ba4f 100644 --- a/routes/index.js +++ b/routes/index.js @@ -96,7 +96,7 @@ router.get('/search', function(req, res, next) { router.get('/questions/:exam_id', function (req,res) { var examID = req.params.exam_id; console.log(examID); - dbFile.get_exam_byID(examID, function(exam){ + dbFile.get_exam_byID(examID, function(success, error, exam){ /* [ { q_id: 1, question: 'this is q1' }, |
