Skip to content

Commit

Permalink
fix: remove picked by space param
Browse files Browse the repository at this point in the history
  • Loading branch information
1emu committed Jun 11, 2024
1 parent afd5951 commit b86881b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/back/routes/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import routes from 'decentraland-gatsby/dist/entities/Route/routes'
import { Request } from 'express'

import { SnapshotSubgraph } from '../../clients/SnapshotSubgraph'
import { SNAPSHOT_SPACE } from '../../entities/Snapshot/constants'
import { getDelegations as getSnapshotDelegations } from '../../entities/Snapshot/utils'
import { SnapshotService } from '../../services/SnapshotService'
import { SnapshotStatusService } from '../../services/SnapshotStatusService'
Expand Down Expand Up @@ -92,11 +93,7 @@ async function getDelegations(req: Request) {
}

async function getPickedBy(req: Request) {
const { addresses, space } = req.body
const { addresses } = req.body
validateAddresses(addresses)
if (!space || typeof space !== 'string' || space.length === 0) {
throw new RequestError('Invalid snapshot space', RequestError.BadRequest)
}

return await SnapshotSubgraph.get().getPickedBy(addresses, space)
return await SnapshotSubgraph.get().getPickedBy(addresses, SNAPSHOT_SPACE)
}

0 comments on commit b86881b

Please sign in to comment.