Skip to content

Commit d3ae4ff

Browse files
author
renchengchang
committed
rename filterSomeToken to specialProcess
1 parent 1680be5 commit d3ae4ff

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/org/tronscan/api/TokenApi.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class TokenApi @Inject()(
3232
case (t, "supply") => t.totalSupply
3333
}
3434

35-
q = q andThen filterSomeToken {
35+
q = q andThen specialProcess {
3636
case query => query.filter(x => x.name =!= "Fortnite" && x.name =!= "ZZZ" && x.name =!= "VBucks")
3737
}
3838

app/org/tronscan/db/Repository.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ trait TableRepository[T <: Table[E], E <: Any] extends Repository {
116116
runQuery(params.foldLeft(query)(e))
117117
}
118118

119-
def filterSomeToken(fun: QueryType => QueryType)(implicit request: Request[AnyContent]): QueryType => QueryType = { (query: QueryType) =>
119+
def specialProcess(fun: QueryType => QueryType)(implicit request: Request[AnyContent]): QueryType => QueryType = { (query: QueryType) =>
120120
fun(query)
121121
}
122122

0 commit comments

Comments
 (0)