新增:token转账列表新增分页参数

This commit is contained in:
2023-03-10 09:22:13 +08:00
parent 8f680fd7c3
commit 841126c0fc
4 changed files with 10 additions and 8 deletions

View File

@@ -39,7 +39,7 @@ class Projects::ListMyQuery < ApplicationQuery
# elsif params[:category].to_s == "private"
# projects = projects.is_private.joins(:members).where(members: { user_id: user.id })
elsif params[:category].to_s == "blockchain_token" # 所有钱包中有token的项目有哪些
token_list = find_repo_with_token(user.id)
token_list, total_count = find_repo_with_token(user.id)
project_names = token_list.map { |x| x['token_name'] }
projects = projects.where(name: project_names)
tokens = token_list.map { |x| x['balance'] }