Skip to content

Commit

Permalink
fix: update table name from 'user' to 'usersprofile' in IdpRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
a01sa01to committed Jan 7, 2025
1 parent c447d8a commit 2830627
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webapp/repository/idp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ export class IdpRepository {
constructor(db: D1Database) {
this.db = db
this.getStmt = {
userById: db.prepare('SELECT * FROM user WHERE id = ?'),
userById: this.db.prepare('SELECT * FROM usersprofile WHERE id = ?'),
}
this.insertStmt = {
user: db.prepare(
'INSERT INTO user (id, display_name, profile_image_url) VALUES (?, ?, ?)',
user: this.db.prepare(
'INSERT INTO usersprofile (user_id, display_name, profile_image_url) VALUES (?, ?, ?)',
),
}
}
Expand Down

0 comments on commit 2830627

Please sign in to comment.