Skip to content
Snippets Groups Projects
Commit 89825da1 authored by nicolas.paschoud's avatar nicolas.paschoud
Browse files

Lil log to understand things better

parent ebe0acbb
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,6 @@ lng: 6.1459 ...@@ -37,7 +37,6 @@ lng: 6.1459
login: "a" login: "a"
paths: "/a" paths: "/a"
*/ */
console.log(infos);
el.innerHTML = ` el.innerHTML = `
<p>File name : ${infos.file_name}</p> <p>File name : ${infos.file_name}</p>
<p>Path : ${infos.paths}</p> <p>Path : ${infos.paths}</p>
......
...@@ -226,7 +226,10 @@ function createPath(path, user, callback) { ...@@ -226,7 +226,10 @@ function createPath(path, user, callback) {
function getInfo(file_id, login, callback){ function getInfo(file_id, login, callback){
const q = `SELECT * FROM Files WHERE file_id='${file_id}';`; const q = `SELECT * FROM Files WHERE file_id='${file_id}';`;
con.query(q, (err, resp) => { con.query(q, (err, resp) => {
if (err) return callback(false, err); if (err) {
console.log(err);
return callback(false, err);
}
return callback(resp, resp); return callback(resp, resp);
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment