Browse Source

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

System.Data.SqlClient.SqlException (0x80131904): Invalid column name 'id'.
master
edelibas 4 years ago
committed by Savorboard
parent
commit
275b5b5ed1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/DotNetCore.CAP.SqlServer/IMonitoringApi.SqlServer.cs

+ 2
- 2
src/DotNetCore.CAP.SqlServer/IMonitoringApi.SqlServer.cs View File

@@ -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')
@@ -211,4 +211,4 @@ select [Key], [Count] from aggr with (nolock) where [Key] in @keys;";
return result;
}
}
}
}

Loading…
Cancel
Save