Skip to content

Commit

Permalink
Fix reports SQL query
Browse files Browse the repository at this point in the history
  • Loading branch information
Groxan committed Jun 6, 2024
1 parent 307ad72 commit 597d492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tzkt.Api/Repositories/ReportRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ void UnionBaking(StringBuilder sql)
sql.Append(@"FROM ""Blocks"" ");
sql.Append(@"WHERE ""ProposerId"" = @account ");
sql.Append(@"AND ""Level"" >= @fromLevel AND ""Level"" <= @toLevel ");
sql.Append(@"AND (""RewardDelegated"" > 0 OR ""RewardStakedOwn"" OR ""RewardStakedEdge"" > 0 OR ""Fees"" > 0) ");
sql.Append(@"AND (""RewardDelegated"" > 0 OR ""RewardStakedOwn"" > 0 OR ""RewardStakedEdge"" > 0 OR ""Fees"" > 0) ");

sql.AppendLine();
#endregion
Expand Down

0 comments on commit 597d492

Please sign in to comment.