@storyous/features
Advanced tools
Comparing version 3.3.0 to 3.3.1
@@ -43,5 +43,5 @@ 'use strict'; | ||
return { | ||
updateOne: { | ||
replaceOne: { | ||
filter: { _id: key }, | ||
update: newDocument, | ||
replacement: newDocument, | ||
upsert: true | ||
@@ -48,0 +48,0 @@ } |
@@ -37,3 +37,3 @@ 'use strict'; | ||
}, documentMatcher); | ||
await collection.updateOne(documentMatcher, currentDefinitions, { upsert: true }); | ||
await collection.replaceOne(documentMatcher, currentDefinitions, { upsert: true }); | ||
} catch (err) { | ||
@@ -40,0 +40,0 @@ if (options.onError) { |
@@ -59,5 +59,5 @@ 'use strict'; | ||
return { | ||
updateOne: { | ||
replaceOne: { | ||
filter: { _id: key }, | ||
update: newDocument, | ||
replacement: newDocument, | ||
upsert: true | ||
@@ -64,0 +64,0 @@ } |
@@ -37,3 +37,3 @@ 'use strict'; | ||
}, documentMatcher); | ||
await collection.updateOne(documentMatcher, currentDefinitions, { upsert: true }); | ||
await collection.replaceOne(documentMatcher, currentDefinitions, { upsert: true }); | ||
} catch (err) { | ||
@@ -40,0 +40,0 @@ if (options.onError) { |
{ | ||
"name": "@storyous/features", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"main": "./dist/es5-node5/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
217827