Skip to content

Commit

Permalink
Update knex-postgres.md
Browse files Browse the repository at this point in the history
Fix typo in knex lesson - add id property to paperId object
  • Loading branch information
nicktu12 authored Apr 4, 2024
1 parent 2af63ce commit 6581520
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lessons/module-4/knex-postgres.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@ exports.seed = async function (knex) {
title: 'Fooo', author: 'Bob', publisher: 'Minnesota'
}, 'id')
return knex('footnotes').insert([
{ note: 'Lorem', paper_id: paperId[0] },
{ note: 'Dolor', paper_id: paperId[0] }
{ note: 'Lorem', paper_id: paperId[0].id },
{ note: 'Dolor', paper_id: paperId[0].id }
])
} catch (error) {
console.log(`Error seeding data: ${error}`);
Expand Down Expand Up @@ -539,4 +539,4 @@ Write a GET request to retrieve all footnotes for a pre-existing paper. Verify i

### Instructor Resources

* [Step-by-Step Code Along Screenshots](https://github.com/turingschool/front-end-keys/tree/master/module-4/lesson-plans/knex)
* [Step-by-Step Code Along Screenshots](https://github.com/turingschool/front-end-keys/tree/master/module-4/lesson-plans/knex)

0 comments on commit 6581520

Please sign in to comment.