Aufgabe 3: fix

This commit is contained in:
Selina 2019-01-05 14:46:06 +01:00
parent 489f2c3baf
commit ef4da1695d

View file

@ -145,7 +145,7 @@ const server = app.listen(3000, function () {
const id_exists = (id) => {
for (let i = 0; i < csvdata.length; i++) {
if (parseInt(csvdata[i].id) === first_requested_id) {
if (parseInt(csvdata[i].id) === id) {
return true;
}
}