Skip to content

Commit afe12e4

Browse files
committed
fix: fix lambda require path for analytics
1 parent 9274a20 commit afe12e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/Analytics.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const uuid = require('uuid')
2-
const fetch = require('node-fetch')
2+
const nodeFetch = require('node-fetch')
33

44
class Analytics {
55
constructor({ user, repo, owner, apiKey, log, funnelId }) {
@@ -36,7 +36,7 @@ class Analytics {
3636

3737
const log = this.log
3838

39-
const newEventPromise = fetch('https://api.amplitude.com/httpapi', {
39+
const newEventPromise = nodeFetch('https://api.amplitude.com/httpapi', {
4040
method: 'post',
4141
body: JSON.stringify(payload),
4242
headers: { 'Content-Type': 'application/json' },

0 commit comments

Comments
 (0)