From 1124ae52c7ccefa8a065b069b2559e3cb4f2bf3d Mon Sep 17 00:00:00 2001 From: Michelle Brier Date: Mon, 27 Nov 2023 15:55:02 -0800 Subject: [PATCH] Fix dashboard prod deploy (#6787) --- protocol-dashboard/scripts/updateBuild.cjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/protocol-dashboard/scripts/updateBuild.cjs b/protocol-dashboard/scripts/updateBuild.cjs index 78cf0b5ec48..5a5e7e89d9a 100644 --- a/protocol-dashboard/scripts/updateBuild.cjs +++ b/protocol-dashboard/scripts/updateBuild.cjs @@ -65,6 +65,7 @@ const pinFromFs = async (cid) => { try { const result = await pinata.pinFromFS(sourcePath, options) console.log(result) + return result } catch (e) { console.log(e) } @@ -74,8 +75,8 @@ const run = async () => { try { await updateGABuild() const cid = await pinGABuild() - await pinFromFs(cid) - fs.writeFileSync(`./build_cid.txt`, cid.IpfsHash) + const { IpfsHash } = await pinFromFs(cid) + fs.writeFileSync(`./build_cid.txt`, IpfsHash) process.exit() } catch (err) { console.log(err)