From 597d4924792d6de9506becaf7c287cd52aa0b465 Mon Sep 17 00:00:00 2001 From: Maksim Strebkov <257byte@gmail.com> Date: Thu, 6 Jun 2024 19:39:16 +0300 Subject: [PATCH] Fix reports SQL query --- Tzkt.Api/Repositories/ReportRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tzkt.Api/Repositories/ReportRepository.cs b/Tzkt.Api/Repositories/ReportRepository.cs index 74a06d65..1a36cd5a 100644 --- a/Tzkt.Api/Repositories/ReportRepository.cs +++ b/Tzkt.Api/Repositories/ReportRepository.cs @@ -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