From 2dafd8d24ae00f59ed3d16eb97f23f44d6a7c484 Mon Sep 17 00:00:00 2001 From: Ashutosh Kumar Date: Tue, 9 Jul 2024 17:51:22 +0000 Subject: [PATCH] Fix for Polls --- components/polls/index.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/components/polls/index.js b/components/polls/index.js index d17b96f..09ef86c 100644 --- a/components/polls/index.js +++ b/components/polls/index.js @@ -156,14 +156,14 @@ const addPoll = async (req, response) => { throw new Error("Invalid Signature, Poll already exists"); } - const cidLink = await uploadToIPFS( - getIPFSProofFromPayload(payloadBytes, signature) - ); - if (!cidLink) { - throw new Error( - "Could not upload proof to IPFS, Vote was not registered. Please try again later" - ); - } + // const cidLink = await uploadToIPFS( + // getIPFSProofFromPayload(payloadBytes, signature) + // ); + // if (!cidLink) { + // throw new Error( + // "Could not upload proof to IPFS, Vote was not registered. Please try again later" + // ); + // } @@ -183,7 +183,7 @@ const addPoll = async (req, response) => { isXTZ, payloadBytes, signature, - cidLink + cidLink:"" }; let data = {