Skip to content

Commit

Permalink
fix: typos found in governance table creation
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Jun 1, 2022
1 parent f2ed390 commit 005f3ac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 '[email protected]'
Expand Down
6 changes: 3 additions & 3 deletions src/controllers/governance.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/data-assertions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
);
Expand Down

0 comments on commit 005f3ac

Please sign in to comment.