Hey is a decentralized and permissionless social media app built with Lens Protocol 🌿

feat: update logEvent integration to include country code for event actions

yoginth.com 75f68b4a c10688f4

verified
+2 -2
+2 -2
apps/api/src/routes/events.ts
··· 9 9 const body = await ctx.req.json(); 10 10 const event = body.event?.trim(); 11 11 const address = ctx.get("account") ?? zeroAddress; 12 - const ipData = getIpData(ctx); 12 + const country = getIpData(ctx).countryCode; 13 13 14 14 if (!event) { 15 15 ctx.status(400); ··· 17 17 } 18 18 19 19 await fetch("https://yoginth.com/api/hey/events", { 20 - body: JSON.stringify({ address, event, ipData }), 20 + body: JSON.stringify({ address, country, event }), 21 21 headers: { 22 22 accept: "application/json", 23 23 "content-type": "application/json"