mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
review: upgraded merged upstream @types/mongodb
This commit is contained in:
@@ -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