Commit 275b5b5e authored by edelibas's avatar edelibas Committed by Savorboard

Dashboard - Invalid column name 'id'. (#413)

System.Data.SqlClient.SqlException (0x80131904): Invalid column name 'id'.
parent 843e9942
......@@ -181,7 +181,7 @@ select [Key], [Count] from aggr with (nolock) where [Key] in @keys;";
var sqlQuery = $@"
with aggr as (
select FORMAT(Added,'yyyy-MM-dd-HH') as [Key],
count(id) [Count]
count(Id) [Count]
from [{_options.Schema}].{tableName}
where StatusName = @statusName
group by FORMAT(Added,'yyyy-MM-dd-HH')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment