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

Fixes

parent 15b943e5
......@@ -160,6 +160,8 @@ app.post('/api/accept', (req, res) => {
return res.json({result: 'supply a `state` in the json body'});
}
console.log(req.body);
if (getDbItem('status') === 0) {
setDbItem('status', state);
console.log(colors.green(`${new Date().toLocaleString()} Updated status: ${state}`));
......
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