mirror of
https://github.com/bitwarden/server.git
synced 2025-06-07 19:50:32 -05:00
Switch go generatecomb
This commit is contained in:
parent
98ec53defd
commit
b83070a925
@ -45,7 +45,7 @@ public class UserSignatureKeyPairRepository : Repository<UserSignatureKeyPair, G
|
||||
"[dbo].[UserSignatureKeyPair_SetForRotation]",
|
||||
new
|
||||
{
|
||||
Id = Guid.NewGuid(),
|
||||
Id = CoreHelpers.GenerateComb();
|
||||
UserId = userId,
|
||||
SignatureAlgorithm = (byte)signingKeys.SignatureAlgorithm,
|
||||
SigningKey = signingKeys.WrappedSigningKey,
|
||||
@ -56,10 +56,10 @@ public class UserSignatureKeyPairRepository : Repository<UserSignatureKeyPair, G
|
||||
commandType: CommandType.StoredProcedure,
|
||||
transaction: transaction);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
public UpdateEncryptedDataForKeyRotation UpdateForKeyRotation(Guid grantorId, SignatureKeyPairData signingKeys)
|
||||
{
|
||||
public UpdateEncryptedDataForKeyRotation UpdateForKeyRotation(Guid grantorId, SignatureKeyPairData signingKeys)
|
||||
{
|
||||
return async (SqlConnection connection, SqlTransaction transaction) =>
|
||||
{
|
||||
await connection.QueryAsync(
|
||||
@ -75,5 +75,5 @@ public class UserSignatureKeyPairRepository : Repository<UserSignatureKeyPair, G
|
||||
commandType: CommandType.StoredProcedure,
|
||||
transaction: transaction);
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user