Skip to content

Commit

Permalink
Merge pull request #2 from berachain/fix-governance-proposal-not-show…
Browse files Browse the repository at this point in the history
…ing-up

Fix: Governance proposal not showing up
  • Loading branch information
garrettparris authored Jul 22, 2024
2 parents 4cb16ed + 49e1ff4 commit 7e234cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ yarn-error.log*

# local env files
.env
.env.*
.env*.local
.env.push.*

Expand Down
7 changes: 4 additions & 3 deletions packages/berajs/src/actions/governance/getAllProposals.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { governanceOrganizationId } from "@bera/config";
import { getProposals } from "@bera/graphql";

import { BeraConfig, Proposal } from "~/types";
Expand All @@ -15,14 +16,14 @@ export const getAllProposals = async ({
const variables = {
input: {
filters: {
organizationId: "",
organizationId: governanceOrganizationId,
},
sort: {
sortBy: "id",
isDescending: true,
},
page: {
limit: 10,
limit: 100,
},
},
};
Expand All @@ -31,7 +32,7 @@ export const getAllProposals = async ({
headers: {
"Content-Type": "application/json",
Accept: "application/json",
"Api-Key": process.env.TALLY_API_KEY as string,
"Api-Key": process.env.NEXT_PUBLIC_TALLY_API_KEY as string,
},
body: JSON.stringify({
query: getProposals.loc?.source.body,
Expand Down

0 comments on commit 7e234cb

Please sign in to comment.