Skip to content

Commit

Permalink
fix: docs on pg-promise adapter(#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-artuso authored Jan 30, 2024
1 parent fdff0a8 commit 1bc5e99
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ class UserRepository {

async getUserById(id: number) {
// highlight-start
// txHost.tx is typed as Task
return this.txHost.tx.one(`SELECT * FROM user WHERE id = $1`);
// txHost.tx is typed as Database
return this.txHost.tx.one(`SELECT * FROM user WHERE id = $1`, [id]);
// highlight-end
}

Expand Down

0 comments on commit 1bc5e99

Please sign in to comment.