From 710a291c6db440e179ba6dae58409d86a448ff31 Mon Sep 17 00:00:00 2001 From: SYLVIE MOLINATTO s318952 Date: Sat, 9 Dec 2023 17:25:58 +0100 Subject: [PATCH] comment added --- backend/users_dao.js | 6 ++++++ 1 file changed, 6 insertions(+) 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 = ?';