Skip to content

Commit

Permalink
make some edits
Browse files Browse the repository at this point in the history
relates #14
  • Loading branch information
AlaaSaadeddin committed Mar 30, 2020
1 parent 7025dd3 commit 1097d1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions server/controllers/routes/user/cohort/getCohortsData.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ const { getCohorts } = require('../../../../database/queries');
const getCohortsData = async (req, res, next) => {
try {
const { rows } = await getCohorts();
console.log(rows);
res.json({ msg: 'test' });
res.json({ status: 200, data: rows });
} catch (err) {
next(err);
}
Expand Down
2 changes: 1 addition & 1 deletion server/database/queries/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const { getCohorts } = require('./cohort');

module.exporets = { getCohorts };
module.exports = { getCohorts };

0 comments on commit 1097d1d

Please sign in to comment.