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

feat: add username attribute to LensAccount interface and update getLensAccount function to include username in account retrieval

yoginth.com 54b50f51 4147e9a3

verified
+5 -2
+5 -2
apps/api/src/utils/getLensAccount.ts
··· 24 24 25 25 interface LensAccount { 26 26 address: Hex; 27 + username: string; 27 28 texts: { 28 29 avatar: string; 29 30 description: string; ··· 43 44 location: "", 44 45 name: "", 45 46 url: "" 46 - } 47 + }, 48 + username: "" 47 49 }; 48 50 49 51 const getLensAccount = async (handle: string): Promise<LensAccount> => { ··· 89 91 ), 90 92 name: getAccount(data.account).name, 91 93 url: `https://hey.xyz${getAccount(data.account).link}` 92 - } 94 + }, 95 + username: getAccount(data.account).username 93 96 }; 94 97 } catch { 95 98 return defaultAccount;