Skip to content

Commit

Permalink
fix: update user retrieval query to use 'id' instead of '_id'
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermeais-luizalabs committed Dec 10, 2024
1 parent b017dfd commit ac7a494
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class MongoDbUsersRepository implements UsersRepository {
);

const user = await this.userModel.findOne({
_id: id.toValue()
id: id.toValue()
}).exec();

if (!user) {
Expand Down

0 comments on commit ac7a494

Please sign in to comment.