From 005f3ac8242ebac709f60f5f65205859d23d1643 Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Wed, 1 Jun 2022 13:46:08 -0400 Subject: [PATCH] fix: typos found in governance table creation --- .github/workflows/auto-release.yml | 2 +- src/controllers/governance.controller.js | 6 +++--- src/utils/data-assertions.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index fd4c1d43..1a80ad7e 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -33,7 +33,7 @@ jobs: echo "Tag exists, nothing to do" else echo "Tag does not exist. Creating and pushing tag" - npx standard-version + npx standard-version --first-release git add CHANGELOG.md git config --global user.name 'ChiaAutomation' git config --global user.email 'automation@chia.net' diff --git a/src/controllers/governance.controller.js b/src/controllers/governance.controller.js index 4fd02643..81620b42 100644 --- a/src/controllers/governance.controller.js +++ b/src/controllers/governance.controller.js @@ -54,15 +54,15 @@ export const createGoveranceBody = async (req, res) => { await assertWalletIsSynced(); await assertCanBeGovernanceBody(); - await Governance.createGoveranceBody(); + Governance.createGoveranceBody(); return res.json({ message: - 'Setting up new Governance Body on this node, this can tae a few mins', + 'Setting up new Governance Body on this node, this can take a few mins', }); } catch (error) { res.status(400).json({ - message: 'Cant update default orgs', + message: 'Cant create Governance Body', error: error.message, }); } diff --git a/src/utils/data-assertions.js b/src/utils/data-assertions.js index f629899a..804bab7f 100644 --- a/src/utils/data-assertions.js +++ b/src/utils/data-assertions.js @@ -24,7 +24,7 @@ export const assertChiaNetworkMatchInConfiguration = async () => { }; export const assertCanBeGovernanceBody = async () => { - if (IS_GOVERNANCE_BODY !== 'true') { + if (!IS_GOVERNANCE_BODY) { throw new Error( 'You are not an governance body and can not use this functionality', );