Commit cec45ed7 authored by François Agneray's avatar François Agneray
Browse files

Authentification => ok

parent 774580e4
......@@ -4,7 +4,7 @@ const db = require('../services/db');
async function getAllAgents() {
const results = await db.query(
`SELECT firstname, lastname, status, cap
`SELECT id_agent, firstname, lastname, status, cap
FROM agents, status
WHERE ref_status = id_status;`
);
......
......@@ -38,7 +38,7 @@ async function addOneMission(data) {
data.date_to]
);
return "Mission created";
return {status: "Mission created"};
};
/* PUT mission */
......@@ -60,7 +60,7 @@ async function updateOneMission(data, id_mission) {
id_mission]
);
return "Mission updated";
return {status: "Mission updated"};
};
/* DELETE mission */
......@@ -72,7 +72,7 @@ async function deleteOneMission(id_mission) {
[id_mission]
);
return "Mission deleted";
return {status: "Mission deleted"};
};
module.exports = {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment