Skip to content

Commit

Permalink
rename filterSomeToken to specialProcess
Browse files Browse the repository at this point in the history
  • Loading branch information
renchengchang committed Aug 15, 2018
1 parent 1680be5 commit d3ae4ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/org/tronscan/api/TokenApi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class TokenApi @Inject()(
case (t, "supply") => t.totalSupply
}

q = q andThen filterSomeToken {
q = q andThen specialProcess {
case query => query.filter(x => x.name =!= "Fortnite" && x.name =!= "ZZZ" && x.name =!= "VBucks")
}

Expand Down
2 changes: 1 addition & 1 deletion app/org/tronscan/db/Repository.scala
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ trait TableRepository[T <: Table[E], E <: Any] extends Repository {
runQuery(params.foldLeft(query)(e))
}

def filterSomeToken(fun: QueryType => QueryType)(implicit request: Request[AnyContent]): QueryType => QueryType = { (query: QueryType) =>
def specialProcess(fun: QueryType => QueryType)(implicit request: Request[AnyContent]): QueryType => QueryType = { (query: QueryType) =>
fun(query)
}

Expand Down

0 comments on commit d3ae4ff

Please sign in to comment.