dap-ps / discover

Discover a whole new world of curated decentralised applications
https://dap.ps
Mozilla Public License 2.0
21 stars 9 forks source link

fix re-declaring content variable #77

Closed jakubgs closed 4 years ago

jakubgs commented 4 years ago

This fixes the backend error when uploading a Dapp:

[2020-02-14 09:59:30]-[INFO]-[IPFS-Service]: Content uploaded to IPFS: QmRok67sWEib5BuvFXdckoqB83EGo81MmQGz7pKzcpU3UF
SyntaxError: Identifier 'content' has already been declared
    at Function.upload (/var/app/current/services/dapp-image-service.js:12:55)
    at process._tickCallback (internal/process/next_tick.js:68:7)
Error: Identifier 'content' has already been declared
    at Function.upload (/var/app/current/services/dapp-metadata-service.js:41:13)
    at process._tickCallback (internal/process/next_tick.js:68:7)