Unverified Commit 9a73db70 authored by Farhan Ullah's avatar Farhan Ullah Committed by GitHub

Fix: Build time error for with-mysql example #19635 (#19636)

parent 55afe80c
......@@ -7,7 +7,7 @@ const handler: NextApiHandler = async (req, res) => {
if (!id) {
return res.status(400).json({ message: '`id` required' })
}
if (typeof parseInt(id) !== 'number') {
if (typeof parseInt(id.toString()) !== 'number') {
return res.status(400).json({ message: '`id` must be a number' })
}
const results = await query(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment