Skip to content

Commit

Permalink
Merge pull request kodadot#10634 from Jarsen136/fix/drop-by-collection
Browse files Browse the repository at this point in the history
  • Loading branch information
vikiival authored Jul 16, 2024
2 parents 9c6b1ae + 793e469 commit e3bcd80
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pages/drop-checker/[chain]/[collection-id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,12 @@ const collectionId = params['collectionid'].toString()
const { chainSymbol, decimals } = useChain()

// get data from database
const data = await getDrops({
chain: [chain],
limit: 100,
})
const drops = data.filter((drop) => drop.collection === collectionId)[0]
const drops = (
await getDrops({
chain: [chain],
collection: collectionId,
})
)[0]

// get data from indexer
const { client, setUrlPrefix } = usePrefix()
Expand Down
1 change: 1 addition & 0 deletions services/fxart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export type GetDropsQuery = {
limit?: number
active?: boolean[]
chain?: string[]
collection?: string
}

export type DropMintedStatus = {
Expand Down

0 comments on commit e3bcd80

Please sign in to comment.