From 6fbb790988248137be7053ccd7cc718c294b6145 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 10 Jan 2024 14:18:08 -0500 Subject: [PATCH] use proper Grant entity model for Dapper mapping (#3657) --- .../Auth/Repositories/GrantRepository.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Infrastructure.Dapper/Auth/Repositories/GrantRepository.cs b/src/Infrastructure.Dapper/Auth/Repositories/GrantRepository.cs index 6d004b534..a12969a8f 100644 --- a/src/Infrastructure.Dapper/Auth/Repositories/GrantRepository.cs +++ b/src/Infrastructure.Dapper/Auth/Repositories/GrantRepository.cs @@ -23,7 +23,7 @@ public class GrantRepository : BaseRepository, IGrantRepository { using (var connection = new SqlConnection(ConnectionString)) { - var results = await connection.QueryAsync( + var results = await connection.QueryAsync( "[dbo].[Grant_ReadByKey]", new { Key = key }, commandType: CommandType.StoredProcedure); @@ -37,12 +37,12 @@ public class GrantRepository : BaseRepository, IGrantRepository { using (var connection = new SqlConnection(ConnectionString)) { - var results = await connection.QueryAsync( + var results = await connection.QueryAsync( "[dbo].[Grant_Read]", new { SubjectId = subjectId, SessionId = sessionId, ClientId = clientId, Type = type }, commandType: CommandType.StoredProcedure); - return results.ToList(); + return results.ToList(); } }