mirror of
https://github.com/wassname/talk.git
synced 2026-07-31 12:50:48 +08:00
review: upgraded merged upstream @types/mongodb
This commit is contained in:
Generated
+3
-4
@@ -2016,13 +2016,12 @@
|
||||
}
|
||||
},
|
||||
"@types/mongodb": {
|
||||
"version": "3.1.8",
|
||||
"resolved": "https://registry.npmjs.org/@types/mongodb/-/mongodb-3.1.8.tgz",
|
||||
"integrity": "sha512-5higsHdPx63XKIh5hjr5GGrCCErBqEbpZZiNsUcqk97mMDpCBH9R4dRi/T8bcMrQItCdL+wecagdAj3JPKkuVg==",
|
||||
"version": "3.1.14",
|
||||
"resolved": "https://registry.npmjs.org/@types/mongodb/-/mongodb-3.1.14.tgz",
|
||||
"integrity": "sha512-Hc9nhu9Z33Gq8SP2CZluNlhwbXBCEGAzLMQPEceZG0wUt/ZTzIGaeo8RXu7FWNXfUd6JHh6KHl0YjQlu6TgncQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@types/bson": "*",
|
||||
"@types/events": "*",
|
||||
"@types/node": "*"
|
||||
}
|
||||
},
|
||||
|
||||
+1
-1
@@ -144,7 +144,7 @@
|
||||
"@types/lodash": "^4.14.111",
|
||||
"@types/luxon": "^0.5.3",
|
||||
"@types/mini-css-extract-plugin": "^0.2.0",
|
||||
"@types/mongodb": "^3.1.8",
|
||||
"@types/mongodb": "^3.1.14",
|
||||
"@types/ms": "^0.7.30",
|
||||
"@types/node": "^10.5.2",
|
||||
"@types/node-fetch": "^2.1.2",
|
||||
|
||||
@@ -320,18 +320,14 @@ export async function updateTenantOIDCAuthIntegration(
|
||||
const result = await collection(mongo).findOneAndUpdate(
|
||||
{ id },
|
||||
{
|
||||
// $set: dotize({
|
||||
// "auth.integrations.oidc.$[oidc]": input,
|
||||
// }),
|
||||
// FIXME: uncomment when https://github.com/DefinitelyTyped/DefinitelyTyped/pull/29986 gets merged
|
||||
$set: dotize({
|
||||
"auth.integrations.oidc.$[]": input,
|
||||
"auth.integrations.oidc.$[oidc]": input,
|
||||
}),
|
||||
},
|
||||
{
|
||||
// Add an ArrayFilter to only update one of the OpenID Connect
|
||||
// integrations.
|
||||
// arrayFilters: [{ "oidc.id": oidcID }], // FIXME: uncomment when https://github.com/DefinitelyTyped/DefinitelyTyped/pull/29986 gets merged
|
||||
arrayFilters: [{ "oidc.id": oidcID }],
|
||||
// False to return the updated document instead of the original
|
||||
// document.
|
||||
returnOriginal: false,
|
||||
|
||||
Reference in New Issue
Block a user