Skip to content

Commit

Permalink
fix: remove unused attester parameter from GraphQL query
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-ai-integration[bot] committed Nov 14, 2024
1 parent 1dc0618 commit af79e91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions app/attestation/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ export async function generateStaticParams() {
query: GET_RECENT_ATTESTATIONS,
variables: {
take: 100, // Pre-generate paths for the 100 most recent attestations
skip: 0,
attester: null // Allow attestations from all attesters
skip: 0
},
});

Expand All @@ -26,7 +25,7 @@ export async function generateStaticParams() {
}

// Server component that wraps the client component
export default function AttestationPage({
export default async function AttestationPage({
params,
}: {
params: { id: string };
Expand Down
3 changes: 1 addition & 2 deletions graphql/queries.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { gql } from "@apollo/client";

export const GET_RECENT_ATTESTATIONS = gql`
query GetRecentAttestations($take: Int!, $skip: Int, $attester: String) {
query GetRecentAttestations($take: Int!, $skip: Int) {
attestations(
take: $take
skip: $skip
orderBy: { time: desc }
where: { attester: { equals: $attester } }
) {
id
attester
Expand Down

0 comments on commit af79e91

Please sign in to comment.