Skip to content
Snippets Groups Projects
Commit ab1a6aaa authored by Josep Andre Ginting's avatar Josep Andre Ginting
Browse files

add require in eslintrc.js

parent fbce3072
2 merge requests!16Release/1.0,!13Feature/pipeline
Pipeline #20340 failed with stage
in 49 seconds
module.exports = {
"env": {
"browser": true,
"es6": true
"es6": true,
"amd": true
},
"extends": [
"eslint:recommended",
......
......@@ -26,6 +26,7 @@ app.get("/api/transaksi", (req, res) => {
if (err) throw err;
res.send(JSON.stringify({ status: 200, error: null, response: results }));
});
console.log(query);
});
//add new transaction
......@@ -42,6 +43,7 @@ app.post("/api/transaksi", (req, res) => {
}
res.send(JSON.stringify({ status: 200, error: null, response: results }));
});
console.log(query);
});
//change transaction status
......@@ -56,6 +58,7 @@ app.put("/api/transaksi/:id_transaksi", (req, res) => {
if (err) throw err;
res.send(JSON.stringify({ status: 200, error: null, response: results }));
});
console.log(query);
});
// Send all user transaction data
......@@ -72,6 +75,7 @@ app.get("/api/transaksi/:id_transaksi", (req, res) => {
JSON.parse(JSON.stringify({ response: { account_num, results } }))
);
});
console.log(query);
});
//===========================================================================================
......
......@@ -4,9 +4,9 @@
"description": "1. Mengembalikan seluruh data transaksi (layanan 3)\r ### Alam\r 1. Menambah transaksi baru (layanan 1)\r 2. Skema database \r ### Josep\r 1. Mengubah status sebuah transaksi (layanan 2)",
"main": "index.js",
"scripts": {
"lint": "eslint",
"start": "nodemon index.js",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint"
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
......
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