diff --git a/backend/users_dao.js b/backend/users_dao.js index f71ca945..37c09694 100644 --- a/backend/users_dao.js +++ b/backend/users_dao.js @@ -109,6 +109,12 @@ exports.getStudentById = (id) => { * @property {string} email */ +/** + * Return all the exams of the student with the given id + * + * @param {string} id + * @return {Promise} + */ exports.getStudentCareer = (id) => { return new Promise((resolve, reject) => { const sql = 'SELECT cod_course, title_course, cfu, grade, date FROM career WHERE id = ?';