diff --git a/package.json b/package.json index 601fff8..6421ad7 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "@chainlink/ccip-read-server": "^0.2.1", "@ensdomains/ccip-read-cf-worker": "^0.0.3", "@ensdomains/dnsprovejs": "^0.4.1", - "@ensdomains/server-analytics": "^0.0.1-alpha.2", + "@ensdomains/server-analytics": "^0.0.1-alpha.3", "dotenv": "^16.0.3", "ethers": "^5.7.2", "node-fetch": "2.6.1" diff --git a/src/worker.ts b/src/worker.ts index 349ea80..319a2e5 100644 --- a/src/worker.ts +++ b/src/worker.ts @@ -40,7 +40,7 @@ const routeHandler = (env: ENV, trackEvent?: Function) => { return app; }; -const dataDecoder = async (data: string) => { +const dataDecoder = async (_:CFWRequest, data: string) => { const decodedData = ethers.utils.defaultAbiCoder.decode( abi_RRSetWithSignature, data @@ -49,7 +49,7 @@ const dataDecoder = async (data: string) => { rrset: item[0], sig: item[1], })); - return extractENSRecord(structuredData); + return { result: extractENSRecord(structuredData) }; }; module.exports = {