Skip to content

Commit

Permalink
fix: docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-artuso committed Jan 29, 2024
1 parent fdff0a8 commit d2d915f
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 d2d915f

Please sign in to comment.