Skip to content
Snippets Groups Projects
Commit c7c42671 authored by AA2875's avatar AA2875
Browse files

Muokkauksen tallennus korjattu

parent 495d949f
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,7 @@ app.delete('/jumps/:id', async (request, response) => {
app.put('/jumps/:id', async (request, response) => {
const { number, date, place, plane, canopy, height, falltime, comments, link } = request.body
console.log(number, date, place, plane, canopy, height, falltime, comments, link)
const { id } = request.params
const jump = await Jump.findByIdAndUpdate(
id,
......
......@@ -347,7 +347,7 @@ function getJumpInfo(id) {
let span = li.getElementsByClassName('fullJumpInfoValue')[0]
data[infoName] = span.innerHTML
} catch {
let input = li.firstChild.value
let input = li.getElementsByTagName('input')[0].value
data[infoName] = input
}
} catch { data['comments'] = '' }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment