Skip to content
Snippets Groups Projects
Commit 93e85007 authored by Laurenz Neumann's avatar Laurenz Neumann
Browse files

fixed small typo in route

parent 01463165
Branches
Tags
No related merge requests found
...@@ -35,14 +35,14 @@ router.post('/stationIdentifier', async function (req, res) { ...@@ -35,14 +35,14 @@ router.post('/stationIdentifier', async function (req, res) {
console.log("Station Identifier to set:" + stationIdentifier) console.log("Station Identifier to set:" + stationIdentifier)
axios.post(host + "/configuration", JSON.stringify({ stationIdentifier })).then(respond => { axios.post(host + "/configuration", JSON.stringify({ stationIdentifier })).then(respond => {
if (respond.statusCode === 200) { if (respond.statusCode === 200) {
req.flash('success_msg', 'Station Identifier updated!') res.flash('success_msg', 'Station Identifier updated!')
req.redirect('/dashboard/metadata') res.redirect('/dashboard/metadata')
} else { } else {
req.flash('ERROR') res.flash('ERROR')
req.redirect('/dashboard/metadata') res.redirect('/dashboard/metadata')
} }
}).catch(err => { }).catch(err => {
req.flash('ERROR'); res.flash('ERROR');
console.log("Error while setting stationIdentifier:" + String(err)) console.log("Error while setting stationIdentifier:" + String(err))
}) })
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment