Skip to content

Commit

Permalink
Merge pull request #893 from ELEVATE-Project/develop
Browse files Browse the repository at this point in the history
Develop to staging
  • Loading branch information
nevil-mathew authored Aug 8, 2024
2 parents d046e74 + 3b316a8 commit 313c7b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions src/services/org-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ module.exports = class OrgAdminService {

static async roleChange(bodyData, updateData = {}) {
try {
bodyData.user_id = bodyData.user_id.toString()
if (
utils.validateRoleAccess(bodyData.current_roles, common.MENTOR_ROLE) &&
utils.validateRoleAccess(bodyData.new_roles, common.MENTEE_ROLE)
Expand Down
2 changes: 0 additions & 2 deletions src/validators/v1/org-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ module.exports = {
req.checkBody('user_id')
.notEmpty()
.withMessage('user_id field is empty')
.isInt()
.withMessage('user_id must be an integer')
req.checkBody('current_roles')
.notEmpty()
.withMessage('current_roles field is empty')
Expand Down

0 comments on commit 313c7b1

Please sign in to comment.