Skip to content

Commit

Permalink
fix(mongo): fix deprecation warnings, use updateOne for removeAllRese…
Browse files Browse the repository at this point in the history
…tPasswordTokens (#982)
  • Loading branch information
sakulstra committed May 18, 2020
1 parent 1b4b0d3 commit e4f0bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/database-mongo/src/mongo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ export class Mongo implements DatabaseInterface {

public async removeAllResetPasswordTokens(userId: string): Promise<void> {
const id = this.options.convertUserIdToMongoObjectId ? toMongoID(userId) : userId;
await this.collection.update(
await this.collection.updateOne(
{ _id: id },
{
$unset: {
Expand Down

0 comments on commit e4f0bb1

Please sign in to comment.