Interactive-Phylogeny-Team / InteractivePhylogeny

0 stars 0 forks source link

Backend Species Endpoint Broken by AccessionNumber Column #79

Closed jbeatty88 closed 3 years ago

jbeatty88 commented 3 years ago

What

Steps to Replicate

  1. Ensure the latest table schema is used but running npm run migrate
  2. Start the server with npm start
  3. Query the species endpoint with Postman or Curl with a known database entry
    • Example: http://localhost:4000/species?scientificName=Gorilla Gorilla

Screenshots

image image

Notice

@erikhuck don't be alarmed, on my branch I modified line 18 in backend/api/router.js to include the error as well so I could show you what the error is.

erikhuck commented 3 years ago

@jbeatty88 pull from main to get the latest changes if you haven't done so already. Then run this command in the back-end directory.

npx sequelize-cli db:migrate:undo:all

Then run this in the same directory:

npm run migrate

Let me know if the problem persists after that.

jbeatty88 commented 3 years ago

That fixed it @erikhuck, thanks!