1
0
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:
Bernd Schoolmann 2025-06-06 12:09:13 +02:00
parent 98ec53defd
commit b83070a925
No known key found for this signature in database

View File

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