Aufgabe 3: fix
This commit is contained in:
parent
489f2c3baf
commit
ef4da1695d
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ const server = app.listen(3000, function () {
|
||||||
|
|
||||||
const id_exists = (id) => {
|
const id_exists = (id) => {
|
||||||
for (let i = 0; i < csvdata.length; i++) {
|
for (let i = 0; i < csvdata.length; i++) {
|
||||||
if (parseInt(csvdata[i].id) === first_requested_id) {
|
if (parseInt(csvdata[i].id) === id) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue