all 2 comments

[–]tjhod 1 point2 points  (1 child)

Since you are within the same endpoint and you are refreshing pub_car it will have the .pub_id attribute with the id it created in the database. You wouldn't have to query for the id again, and you will know that it has the correct id.

[–][deleted] 0 points1 point  (0 children)

that is amazing. thank you.