Skip to content

Commit 6bd2c2b

Browse files
author
crzypatchwork
committed
latest
1 parent 8d76295 commit 6bd2c2b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/pages/search/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ async function fetchDay(day, offset) {
381381
async function fetchSales(offset) {
382382
const { errors, data } = await fetchGraphQL(`
383383
query sales {
384-
hic_et_nunc_trade(order_by: {timestamp: desc}, limit : 15, offset : ${offset}) {
384+
hic_et_nunc_trade(order_by: {timestamp: desc}, limit : 15, offset : ${offset}, where: {swap: {price: {_gte: "200000"}}}) {
385385
timestamp
386386
swap {
387387
price
@@ -391,6 +391,7 @@ async function fetchSales(offset) {
391391
display_uri
392392
id
393393
mime
394+
creator_id
394395
creator {
395396
name
396397
address
@@ -553,7 +554,7 @@ export class Search extends Component {
553554
let tokens = await fetchSales(this.state.offset)
554555
tokens = tokens.map(e => e.token)
555556
tokens = tokens.filter(e => !arr.includes(e.creator_id))
556-
this.setState({ feed: _.uniqBy([...this.state.feed, ...tokens], 'id') })
557+
this.setState({ feed: _.uniqBy(_.uniqBy([...this.state.feed, ...tokens], 'id'), 'creator_id') })
557558
//this.latest(999999)
558559
}
559560

@@ -668,7 +669,7 @@ export class Search extends Component {
668669
let tokens = await fetchSales(this.state.offset)
669670
tokens = tokens.map(e => e.token)
670671
tokens = tokens.filter(e => !arr.includes(e.creator_id))
671-
this.setState({ feed: _.uniqBy([...this.state.feed, ...tokens], 'id') })
672+
this.setState({ feed: _.uniqBy(_.uniqBy([...this.state.feed, ...tokens], 'id'), 'creator_id') })
672673
}
673674

674675
if (this.state.select == 'new OBJKTs') {

0 commit comments

Comments
 (0)