Skip to content

Commit

Permalink
fix: support for applyForProduct link in /qr
Browse files Browse the repository at this point in the history
  • Loading branch information
mvayngrib committed Feb 20, 2018
1 parent 15cb8da commit ce39906
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/samplebot/lambda/http/qr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ const getChatLink = ({ provider, host, product }) => {
product
}

const path = product ? 'applyForProduct' : 'chat'
const qs = querystring.stringify(_.pickBy(query, value => value != null))
return `https://link.tradle.io/chat?${qs}`
return `https://link.tradle.io/${path}?${qs}`
}

const inferSchemaAndData = ({ provider, host, data }) => {
Expand Down

0 comments on commit ce39906

Please sign in to comment.