Skip to content

Commit

Permalink
Merge branch '237_tokens_tickets' of https://github.com/pes2324q2-gei…
Browse files Browse the repository at this point in the history
…-upc/CulturApp_Back into 237_tokens_tickets
  • Loading branch information
Indigestion1 committed Apr 30, 2024
2 parents b82fdd1 + f82a977 commit 2321543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion back_api/routes/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async function checkPerson(req, res, next) {
const clientDoc = await clientRef.get();

const adminReg = db.collection('administradors').doc(decryptedUid);
const adminDoc = await clientRef.get();
const adminDoc = await adminReg.get();

if (!userDoc.exists && !clientDoc.exists && !adminDoc.exists) {
return res.status(404).send('Usuario o cliente que envió la solicitud no encontrado');
Expand Down

0 comments on commit 2321543

Please sign in to comment.