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

feat: remove account address from logEvent integration for event actions

yoginth.com 5daf1b7f 84ba2746

verified
+1 -3
+1 -3
apps/api/src/routes/events.ts
··· 1 1 import { Status } from "@hey/data/enums"; 2 2 import type { Context } from "hono"; 3 - import { zeroAddress } from "viem"; 4 3 import getIpData from "@/utils/getIpData"; 5 4 import handleApiError from "@/utils/handleApiError"; 6 5 ··· 8 7 try { 9 8 const body = await ctx.req.json(); 10 9 const event = body.event?.trim(); 11 - const address = ctx.get("account") ?? zeroAddress; 12 10 const ipData = getIpData(ctx); 13 11 const country = ipData.countryCode; 14 12 const region = ipData.region; ··· 19 17 } 20 18 21 19 await fetch("https://yoginth.com/api/hey/events", { 22 - body: JSON.stringify({ address, country, event, region }), 20 + body: JSON.stringify({ country, event, region }), 23 21 headers: { 24 22 accept: "application/json", 25 23 "content-type": "application/json"