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

Refactor getDbPostId (#5774)

authored by yoginth.com and committed by

GitHub 9b9f3825 afc22923

+2 -4
+2 -4
apps/api/src/utils/getDbPostId.ts
··· 1 - const getDbPostId = (decimal: string) => { 2 - const hex = BigInt(decimal).toString(16); 3 - return `\\x${hex}`; 4 - }; 1 + const getDbPostId = (decimal: string): string => 2 + `\\x${BigInt(decimal).toString(16)}`; 5 3 6 4 export default getDbPostId;