Skip to content

Commit

Permalink
fix(lib/db): type mismatch (#23107)
Browse files Browse the repository at this point in the history
Fixes "Type 'string' is not assignable to type 'number'." TS warning
  • Loading branch information
rekomat authored Mar 16, 2021
1 parent 9431439 commit 44081d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/with-mysql/lib/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const db = mysql({
database: process.env.MYSQL_DATABASE,
user: process.env.MYSQL_USERNAME,
password: process.env.MYSQL_PASSWORD,
port: process.env.MYSQL_PORT,
port: parseInt(process.env.MYSQL_PORT),
},
})

Expand Down

0 comments on commit 44081d0

Please sign in to comment.