Skip to content

Commit

Permalink
Arreglo última vulnerabilidad
Browse files Browse the repository at this point in the history
  • Loading branch information
uo278290 committed May 3, 2022
1 parent 95b5ec7 commit 5bff067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion restapi/src/controllers/CartController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const findByClientId = async (req = request, res = response) => {

async function checkClient(client_id: ObjectId):Promise<boolean>{
if(client_id){
const userFound = await User.findOne({_id: client_id});
const userFound = await User.findOne({_id: client_id.toString()});
if(userFound){
return true;
}
Expand Down

0 comments on commit 5bff067

Please sign in to comment.