Browse Source

lint fix

gh-pages
kevmodrome 6 years ago
parent
commit
a9aa68c7bf
No known key found for this signature in database GPG Key ID: 828D8FE4D235B551
  1. 5
      packages/builder/src/analytics.js

5
packages/builder/src/analytics.js

@ -45,17 +45,16 @@ async function identifyByApiKey(apiKey) {
) )
if (response.status === 200) { if (response.status === 200) {
const id = await response.json() const id = await response.json()
await api.put("/api/keys/userId", { value: id }) await api.put("/api/keys/userId", { value: id })
identify(id) identify(id)
return true return true
} }
return false return false
} catch (error) { } catch (error) {
console.log(error) console.log(error)
} }
} }
function captureException(err) { function captureException(err) {

Loading…
Cancel
Save