Skip to content

Commit

Permalink
Explicitly specify columns to select from tokens table
Browse files Browse the repository at this point in the history
  • Loading branch information
Groxan committed Jul 20, 2023
1 parent 0588753 commit e5e7d7b
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion Tzkt.Api/Repositories/TokensRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,22 @@ public TokensRepository(AccountsCache accounts, TimeCache times, IConfiguration
#region tokens
async Task<IEnumerable<dynamic>> QueryTokensAsync(TokenFilter filter, Pagination pagination, List<SelectionField> fields = null)
{
var select = "*";
var select = @"
""Id"",
""ContractId"",
""BalancesCount"",
""HoldersCount"",
""FirstMinterId"",
""FirstLevel"",
""LastLevel"",
""Tags"",
""TokenId"",
""TotalBurned"",
""TotalMinted"",
""TotalSupply"",
""TransfersCount"",
""Metadata""";

if (fields != null)
{
var counter = 0;
Expand Down

0 comments on commit e5e7d7b

Please sign in to comment.