Skip to content

Commit

Permalink
Merge pull request #39 from priyanka-TL/logs
Browse files Browse the repository at this point in the history
logs
  • Loading branch information
aks30 authored Oct 20, 2021
2 parents 87fc062 + 2c7ad68 commit b43be63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions generics/helpers/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ function valueParser(dataToBeParsed) {

function checkValidUUID(str) {
var validateUUID = uuidValidate(str);
console.log(validateUUID,"validateUUID")
return validateUUID;
}

Expand Down
6 changes: 4 additions & 2 deletions module/users/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,8 @@ module.exports = class UsersHelper {
"registryDetails.locationId" : stateLocationId
};
}
console.log(gen.utils.checkValidUUID( stateLocationId ),"checkValidUUID")
console.log(filterQuery, "filterQuery")

const entitiesData = await entitiesHelper.entityDocuments(filterQuery, ["_id"]);

Expand All @@ -582,7 +584,7 @@ module.exports = class UsersHelper {
message: constants.apiResponses.ENTITIES_NOT_EXIST_IN_LOCATION
}
}

console.log(entitiesData,"entitiesData")
const rolesDocument = await userRolesHelper.roleDocuments({
code : role.toUpperCase()
},["_id","entityTypes.entityType"]);
Expand All @@ -592,7 +594,7 @@ module.exports = class UsersHelper {
message: constants.apiResponses.USER_ROLES_NOT_FOUND
}
}

console.log(rolesDocument,"rolesDocument")
let entityTypes = [];
let stateEntityExists = false;

Expand Down

0 comments on commit b43be63

Please sign in to comment.