mirror of
https://github.com/bitwarden/server.git
synced 2025-06-24 20:58:49 -05:00
PM-20574 fixed reference to a stored proc
This commit is contained in:
parent
26908b2786
commit
ceebfd7f57
@ -25,7 +25,7 @@ public class OrganizationApplicationRepository : Repository<OrganizationApplicat
|
|||||||
using (var connection = new SqlConnection(ReadOnlyConnectionString))
|
using (var connection = new SqlConnection(ReadOnlyConnectionString))
|
||||||
{
|
{
|
||||||
var results = await connection.QueryAsync<OrganizationApplication>(
|
var results = await connection.QueryAsync<OrganizationApplication>(
|
||||||
$"[{Schema}].[RiskInsightCriticalApplication_ReadByOrganizationId]",
|
$"[{Schema}].[OrganizationApplication_ReadByOrganizationId]",
|
||||||
new { OrganizationId = organizationId },
|
new { OrganizationId = organizationId },
|
||||||
commandType: CommandType.StoredProcedure);
|
commandType: CommandType.StoredProcedure);
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ public class OrganizationReportRepository : Repository<OrganizationReport, Guid>
|
|||||||
using (var connection = new SqlConnection(ReadOnlyConnectionString))
|
using (var connection = new SqlConnection(ReadOnlyConnectionString))
|
||||||
{
|
{
|
||||||
var results = await connection.QueryAsync<OrganizationReport>(
|
var results = await connection.QueryAsync<OrganizationReport>(
|
||||||
$"[{Schema}].[RiskInsightReport_ReadByOrganizationId]",
|
$"[{Schema}].[OrganizationReport_ReadByOrganizationId]",
|
||||||
new { OrganizationId = organizationId },
|
new { OrganizationId = organizationId },
|
||||||
commandType: CommandType.StoredProcedure);
|
commandType: CommandType.StoredProcedure);
|
||||||
|
|
||||||
|
@ -13,3 +13,7 @@ GO
|
|||||||
CREATE NONCLUSTERED INDEX [IX_OrganizationReport_OrganizationId]
|
CREATE NONCLUSTERED INDEX [IX_OrganizationReport_OrganizationId]
|
||||||
ON [dbo].[OrganizationReport]([OrganizationId] ASC);
|
ON [dbo].[OrganizationReport]([OrganizationId] ASC);
|
||||||
GO
|
GO
|
||||||
|
|
||||||
|
CREATE NONCLUSTERED INDEX [IX_OrganizationReport_OrganizationId_Date]
|
||||||
|
ON [dbo].[OrganizationReport]([OrganizationId] ASC, [Date] DESC);
|
||||||
|
GO
|
Loading…
x
Reference in New Issue
Block a user