From 44081d0852c1b658bdb60d240999c74eb093be35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Keller?= Date: Tue, 16 Mar 2021 11:31:15 +0100 Subject: [PATCH] fix(lib/db): type mismatch (#23107) Fixes "Type 'string' is not assignable to type 'number'." TS warning --- examples/with-mysql/lib/db.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/with-mysql/lib/db.ts b/examples/with-mysql/lib/db.ts index ede9544eca..07f3d78e29 100644 --- a/examples/with-mysql/lib/db.ts +++ b/examples/with-mysql/lib/db.ts @@ -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), }, }) -- GitLab