1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-15 20:41:35 +01:00

Map Grant_Save object explicitly (#3624)

This commit is contained in:
Matt Bishop 2023-12-29 12:38:22 -05:00 committed by GitHub
parent bfa9269b42
commit ea162d5318
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,19 @@ public class GrantRepository : BaseRepository, IGrantRepository
{
var results = await connection.ExecuteAsync(
"[dbo].[Grant_Save]",
obj,
new
{
obj.Key,
obj.Type,
obj.SubjectId,
obj.SessionId,
obj.ClientId,
obj.Description,
obj.CreationDate,
obj.ExpirationDate,
obj.ConsumedDate,
obj.Data
},
commandType: CommandType.StoredProcedure);
}
}