1
0
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:
voommen-livefront 2025-06-17 10:33:16 -05:00
parent 26908b2786
commit ceebfd7f57
3 changed files with 6 additions and 2 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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