review: upgraded merged upstream @types/mongodb

This commit is contained in:
Wyatt Johnson
2018-10-31 18:00:30 -06:00
parent f39da1f76b
commit f0753214e1
3 changed files with 6 additions and 11 deletions
+2 -6
View File
@@ -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,