Skip to content

Commit

Permalink
fix: bug with limiting proposal fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasDeco committed Jun 3, 2024
1 parent 711efa0 commit 5270fc7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/client/indexer/proposals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export class FutarchyIndexerProposalsClient implements FutarchyProposalsClient {
where: {
dao: { dao_detail: { slug: { _eq: dao.slug } } }
},
limit: 1,
order_by: [
{
created_at: "desc"
Expand Down Expand Up @@ -100,6 +99,7 @@ export class FutarchyIndexerProposalsClient implements FutarchyProposalsClient {
market_type: true,
twaps: {
__args: {
limit: 1,
order_by: [
{
created_at: "desc"
Expand All @@ -111,6 +111,7 @@ export class FutarchyIndexerProposalsClient implements FutarchyProposalsClient {
},
prices: {
__args: {
limit: 1,
order_by: [
{
created_at: "desc"
Expand Down Expand Up @@ -370,7 +371,8 @@ export class FutarchyIndexerProposalsClient implements FutarchyProposalsClient {
{
created_at: "desc"
}
]
],
limit: 1
},
token_amount: true,
created_at: true,
Expand All @@ -389,7 +391,8 @@ export class FutarchyIndexerProposalsClient implements FutarchyProposalsClient {
{
created_at: "desc"
}
]
],
limit: 1
},
base_amount: true,
quote_amount: true,
Expand Down

0 comments on commit 5270fc7

Please sign in to comment.