From c698cb5843c5782e1179fc5a3aaf72fc5600d5d3 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Tue, 18 Aug 2020 09:55:46 +0200 Subject: [PATCH] Fix success value --- server/proofVerification.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/proofVerification.js b/server/proofVerification.js index cf035fb..ffbd3d8 100644 --- a/server/proofVerification.js +++ b/server/proofVerification.js @@ -56,6 +56,7 @@ const Proxy = async (params) => { const obj = await getJSON(res.params.url); res.isVerified = VerifyJsonProof(obj, res.params.checkPath, res.params.checkClaim, res.params.checkRelation); + res.success = true; return res; }; @@ -80,6 +81,7 @@ const Twitter = async (params) => { const get = bent('GET', 'json', {'Content-Type': 'application/json', 'Authorization': `Bearer ${twitter_api_auth}`}); const obj = await get(proofUrl); res.isVerified = re.test(obj.data.text); + res.success = true; return res; };