Skip to content

Commit

Permalink
Clean and sanitaze code
Browse files Browse the repository at this point in the history
  • Loading branch information
lomamech committed Mar 4, 2024
1 parent 920299a commit 55f1eca
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions server/controllers/admin/grades.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ function lookupGrade(uid) {
return db.one(sql, [db.bid(uid)], uid, 'grade');
}


// Lists of grades of hospital employees.
function list(req, res, next) {
let sql = 'SELECT BUID(uuid) as uuid, text FROM grade ;';
Expand Down Expand Up @@ -49,7 +48,6 @@ function detail(req, res, next) {
.done();
}


// POST /grade
function create(req, res, next) {
const data = req.body;
Expand All @@ -68,7 +66,6 @@ function create(req, res, next) {
.done();
}


// PUT /grade /:uuid
function update(req, res, next) {
const sql = 'UPDATE grade SET ? WHERE uuid = ?;';
Expand Down Expand Up @@ -104,7 +101,6 @@ function del(req, res, next) {
.done();
}


// get list of Grade
exports.list = list;

Expand Down

0 comments on commit 55f1eca

Please sign in to comment.