Updated parameters passed to for certificate check

This commit is contained in:
Alex Holliday committed 2024-08-14 19:02:11 -07:00
1 parent 0e3da7e17e
commit aa528722e1
3 files changed
+2 -3

No files matched your search

-1
View File
@@ -31,7 +31,6 @@ const verifyOwnership = (Model, paramName) => {
// If the userID does not match the document's userID, return a 403 error
if (userId.toString() !== doc.userId.toString()) {
console.log(userId.toString(), doc.userId.toString());
const error = new Error(errorMessages.VERIFY_OWNER_UNAUTHORIZED);
error.status = 403;
throw error;