Skip to content

Commit a436e4d

Browse files
committed
Name fix
1 parent a83b9c2 commit a436e4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/MongoDB.Driver.Encryption/CsfleSchemaBuilder.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public EncryptedCollectionBuilder<TDocument> EncryptMetadata(Guid? keyId = null,
102102
_schema["encryptMetadata"] = new BsonDocument
103103
{
104104
{ "keyId", () => new BsonArray { new BsonBinaryData(keyId!.Value, GuidRepresentation.Standard) }, keyId is not null },
105-
{ "algorithm", () => MapCsfleEncyptionAlgorithmToString(algorithm!.Value), algorithm is not null }
105+
{ "algorithm", () => MapCsfleEncryptionAlgorithmToString(algorithm!.Value), algorithm is not null }
106106
};
107107
return this;
108108
}
@@ -298,7 +298,7 @@ private static BsonDocument CreateEncryptDocument(
298298
{ "encrypt", new BsonDocument
299299
{
300300
{ "bsonType", () => bsonTypeVal, bsonTypeVal is not null },
301-
{ "algorithm", () => MapCsfleEncyptionAlgorithmToString(algorithm!.Value), algorithm is not null },
301+
{ "algorithm", () => MapCsfleEncryptionAlgorithmToString(algorithm!.Value), algorithm is not null },
302302
{
303303
"keyId",
304304
() => new BsonArray(new[] { new BsonBinaryData(keyId!.Value, GuidRepresentation.Standard) }),
@@ -355,7 +355,7 @@ private static string MapBsonTypeToString(BsonType type)
355355
};
356356
}
357357

358-
private static string MapCsfleEncyptionAlgorithmToString(EncryptionAlgorithm algorithm)
358+
private static string MapCsfleEncryptionAlgorithmToString(EncryptionAlgorithm algorithm)
359359
{
360360
return algorithm switch
361361
{

0 commit comments

Comments
 (0)