Skip to content

Commit

Permalink
change to fieldtrip post to account for postgres on production
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryntak94 committed Jul 3, 2019
1 parent e0f8d32 commit 4ff7ea6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ server.delete("/students/:id", (req, res) => {
server.post("/fieldTrips", (req, res) => {
const { fieldTrip } = req.body
db("fieldTrips")
.returning("id")
.insert(fieldTrip)
.then(id => {
db("students")
Expand Down

0 comments on commit 4ff7ea6

Please sign in to comment.