Skip to content

Commit

Permalink
fix(integration): 🐛 Google sheets callback crash when no code
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Jun 3, 2022
1 parent b403d9b commit 8ec117a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
Buffer.from(req.query.state.toString(), 'base64').toString()
)
if (req.method === 'GET') {
const code = req.query.code.toString()
const code = req.query.code as string | undefined
if (!workspaceId) return badRequest(res)
if (!code)
return res.status(400).send({ message: "Bad request, couldn't get code" })
Expand Down

4 comments on commit 8ec117a

@vercel
Copy link

@vercel vercel bot commented on 8ec117a Jun 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 8ec117a Jun 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 8ec117a Jun 3, 2022

@vercel
Copy link

@vercel vercel bot commented on 8ec117a Jun 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

builder-v2-git-main-typebot-io.vercel.app
app.typebot.io
builder-v2-typebot-io.vercel.app

Please sign in to comment.