Skip to content

Commit

Permalink
HOTFIX: posting to db didn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
Stav Eyal committed Mar 5, 2019
1 parent 98e5f72 commit 7f4b7db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion server/routes/add-cycle.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ module.exports = ({ body }, res) => {
climb: body.climb,
comment: body.comment,
tech_fouls: body.techFouls
}).spread(match => res.status(200).send(`Cycle inserted: \n${JSON.stringify(match)}`))
})
res.status(200).send(`Cycle inserted`)
}
3 changes: 1 addition & 2 deletions src/components/Record.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ class Record extends React.Component {
}

Record.propTypes = {
match: PropTypes.object.isRequired,
getAll: PropTypes.object.isRequired
match: PropTypes.object.isRequired
}

export default Record

0 comments on commit 7f4b7db

Please sign in to comment.