Skip to content

Commit

Permalink
Merge pull request #57 from nanaya/boolean-mysql
Browse files Browse the repository at this point in the history
Fix type returned from mysql
  • Loading branch information
peppy committed Jan 29, 2024
2 parents 2ace43b + b5229a3 commit 45040f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/oauth-verifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default class OAuthVerifier {
interface AccessTokenRow extends mysql.RowDataPacket {
scopes: string;
user_id: number;
verified: boolean;
verified: number;
}
const [rows] = await this.db.execute<AccessTokenRow[]>(`
SELECT scopes, user_id, verified
Expand All @@ -99,7 +99,7 @@ export default class OAuthVerifier {
requiresVerification: true,
scopes: new Set(scopes),
userId: row.user_id,
verified: row.verified,
verified: Boolean(row.verified),
};
}
}
Expand Down

0 comments on commit 45040f9

Please sign in to comment.