Skip to content

Commit

Permalink
Use DeleteOne instead of remove - Mongoose (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayku authored Jul 9, 2024
1 parent 7596cfe commit 2a5ba1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fido.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ fido.getCredentials = async (uid) => {
};

fido.deleteCredential = async (uid, id) => {
await storage.Credentials.remove({ uid: uid, id: id });
await storage.Credentials.deleteOne({ uid: uid, id: id });
};

/**
Expand Down

0 comments on commit 2a5ba1d

Please sign in to comment.