DEV Community

Catur Hidayat
Catur Hidayat

Posted on

1

[ASK] WHY Always the first data to be updated?

I created a function to update data.
but for some reason, every time I update the data to the 2nd, 3rd and so on. The updated data is always the first data.

here is my code :

movie.js — ~devProjectexpressProject 2021-06-02 at 8.46.30 PM

Case :

First App 2021-06-02 at 8.46.01 PM

Where is my mistake??
Please Help

Top comments (0)

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay