Commit cfdf907b authored by Jasper Verbeet's avatar Jasper Verbeet 🙇🏻

Added extra time

parent fc16b503
......@@ -78,7 +78,7 @@ app.get('/api/notification', (req, res) => {
if (newItem) {
setDbItem('new', false);
const response = {
origin: getDbItem('origin'),
destination: getDbItem('destination'),
......@@ -99,7 +99,7 @@ app.get('/api/status', (req, res) => {
});
app.post('/api/shipment', (req, res) => {
const expected = ['origin', 'destination', 'width', 'height', 'depth', 'weight'];
const expected = ['origin', 'destination', 'width', 'height', 'depth', 'weight', 'added_time'];
const exact = expected.filter((val) => !(val in req.body));
if (exact.length != 0) {
......@@ -121,7 +121,7 @@ app.post('/api/shipment', (req, res) => {
setDbItem('new', false);
console.log(colors.red(`Timed out, declining...`));
}
}, 5000)
}, 20000)
res.json({result: 'ok'});
});
......
Markdown is supported
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