Skip to content

Commit 1680be5

Browse files
author
renchengchang
committed
filter token
1 parent 0e8c529 commit 1680be5

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

app/org/tronscan/api/FundsApi.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class FundsApi @Inject() (
1919
@NamedCache("redis") redisCache: CacheAsyncApi) extends BaseApi {
2020

2121
@ApiOperation(
22-
value = "List blocks",
23-
response = classOf[BlockModel],
22+
value = "List funds",
23+
response = classOf[FundsModel],
2424
responseContainer = "List")
2525
def findAll = Action.async { implicit request =>
2626
for {

app/org/tronscan/api/TokenApi.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class TokenApi @Inject()(
3333
}
3434

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

3939
q = q andThen filterRequest {
@@ -102,7 +102,7 @@ class TokenApi @Inject()(
102102

103103
def findByName(name: String) = Action.async {
104104
var token = name
105-
if (name == "Fortnite") {token = ""}
105+
if (name == "Fortnite" || name == "VBucks") {token = ""}
106106
for {
107107
asset <- repo.findByName(token).map(_.get)
108108
account <- accountRepository.findByAddress(asset.ownerAddress).map(_.get)

0 commit comments

Comments
 (0)