From 16d19d56c74eaa1828fbe28c852d0f80684a1ba9 Mon Sep 17 00:00:00 2001 From: Lyubomir Kiprov Date: Mon, 22 Jul 2019 14:02:42 +0300 Subject: [PATCH] Remove check for staked tokens from approve controller --- back-end/controllers/dapps-metadata-controller.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/back-end/controllers/dapps-metadata-controller.js b/back-end/controllers/dapps-metadata-controller.js index 3184f7d..d46ee4a 100644 --- a/back-end/controllers/dapps-metadata-controller.js +++ b/back-end/controllers/dapps-metadata-controller.js @@ -134,14 +134,7 @@ class DAppsMetadataController { if (dappMetadata) { dappMetadata.status = DAPP_METADATA_STATUSES.APPROVED - const hasStaked = await DiscoverService.hasStaked( - dappMetadata.compressedMetadata, - ) - if (hasStaked) { - dappMetadata.ipfsHash = await IPFSService.addContent( - dappMetadata.details, - ) - } + dappMetadata.ipfsHash = await IPFSService.addContent(dappMetadata.details) await dappMetadata.save()