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

Fixes

parent 9ae35d57
......@@ -106,6 +106,10 @@ app.get('/api/notification', (req, res) => {
weight_increase: increase,
size: size,
time_increase: addedTime,
dest_lng: getDbItem('dest_lng'),
dest_lat: getDbItem('dest_lat'),
stop_lng: getDbItem('stop_lng'),
stop_lat: getDbItem('stop_lat'),
}
setDbItem('opened', true);
......@@ -122,7 +126,7 @@ app.get('/api/status', (req, res) => {
});
app.post('/api/shipment', (req, res) => {
const expected = ['origin', 'destination', 'width', 'height', 'depth', 'weight', 'added_time'];
const expected = ['origin', 'destination', 'width', 'height', 'depth', 'weight', 'added_time', 'dest_lng', 'dest_lat', 'stop_lng', 'stop_lat'];
const exact = expected.filter((val) => !(val in req.body));
if (exact.length != 0) {
......
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