Skip to content

Commit

Permalink
refactor(MongoMemoryServer::CreateUserMongoDB): update "roles" to use…
Browse files Browse the repository at this point in the history
… from mongodb directly

re #663
  • Loading branch information
hasezoey committed Aug 17, 2022
1 parent cb80073 commit 274499a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mongodb-memory-server-core/src/MongoMemoryServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { MongoBinaryOpts } from './util/MongoBinary';
import debug from 'debug';
import { EventEmitter } from 'events';
import { promises as fspromises } from 'fs';
import { MongoClient } from 'mongodb';
import { AddUserOptions, MongoClient } from 'mongodb';
import { lt } from 'semver';
import { EnsureInstanceError, StateError } from './util/errors';
import * as os from 'os';
Expand Down Expand Up @@ -160,7 +160,7 @@ export interface CreateUserMongoDB {
/**
* The Roles for the user, can be an empty array
*/
roles: ({ role: UserRoles; db: string } | UserRoles)[];
roles: AddUserOptions['roles'];
/**
* Specify the specific SCRAM mechanism or mechanisms for creating SCRAM user credentials.
*/
Expand Down

0 comments on commit 274499a

Please sign in to comment.