Skip to content

Commit 2fe6a99

Browse files
committed
Do not pass writeOptions in database calls.
1 parent e669208 commit 2fe6a99

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# bedrock-ssm-mongodb ChangeLog
22

3+
## 12.1.2 - 2025-mm-dd
4+
5+
### Fixed
6+
- Do not pass `writeOptions` in database calls.
7+
38
## 12.1.1 - 2025-03-04
49

510
### Fixed

lib/asymmetric-key.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export async function generateKeyPair({
144144
record.key = await encryptKeySecrets({key: record.key});
145145

146146
try {
147-
await database.collections.ssm.insertOne(record, database.writeOptions);
147+
await database.collections.ssm.insertOne(record);
148148
} catch(e) {
149149
if(!database.isDuplicateError(e)) {
150150
throw e;

lib/key-agreement-key.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export async function generateKeyPair({
9595
record.key = await encryptKeySecrets({key: record.key});
9696

9797
try {
98-
await database.collections.ssm.insertOne(record, database.writeOptions);
98+
await database.collections.ssm.insertOne(record);
9999
} catch(e) {
100100
if(!database.isDuplicateError(e)) {
101101
throw e;

lib/symmetric-key.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export async function generateKey({
6363
record.key = await encryptKeySecrets({key: record.key});
6464

6565
try {
66-
await database.collections.ssm.insertOne(record, database.writeOptions);
66+
await database.collections.ssm.insertOne(record);
6767
const keyDescription = {
6868
'@context': keyContextUrl,
6969
id: keyId,

0 commit comments

Comments
 (0)