Skip to content
This repository was archived by the owner on Nov 14, 2022. It is now read-only.

fix models to use sequelize 5#10

Open
Zeukkari wants to merge 1 commit intowaiyaki:masterfrom
Zeukkari:updateTo5
Open

fix models to use sequelize 5#10
Zeukkari wants to merge 1 commit intowaiyaki:masterfrom
Zeukkari:updateTo5

Conversation

@Zeukkari
Copy link

Update tutorial to use sequalize 5

retrieve(req, res) {
return Todo
.findById(req.params.todoId, {
.findByPk(req.params.todoId, {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You also need to change findById to findOne

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants