Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement mentor availability endpoint #64

Merged

Conversation

Shrenik0321
Copy link
Contributor

Purpose

The purpose of this endpoint is for the mentor to update their availability

Goals

Approach

Screenshots

Checklist

  • This PR doesn't commit any keys, passwords, tokens, usernames, or other secrets.
  • I have read and understood the development best practices guidelines ( http://bit.ly/sef-best-practices )
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation

Related PRs

Test environment

Learning

@Shrenik0321
Copy link
Contributor Author

I havent written the tests yet. Wanted to make sure the endpoint is fine. Will do once approved. Also im not sure about the route @anjula-sack

Comment on lines 15 to 19
profileRouter.put(
'/mentor/availability',
requireAuth,
mentorAvailabilityHandler
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should go to mentor routes @Shrenik0321

@Shrenik0321 Shrenik0321 marked this pull request as ready for review September 23, 2023 04:28
Comment on lines 23 to 26
const defaultUser = {
email: `test${randomString}@gmail.com`,
password: '123'
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can import this from mock.ts.

Comment on lines 11 to 12
const randomString = Math.random().toString(36)
const randomStringAdmin = Math.random().toString(36)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be removed. Check mock.ts

Copy link
Member

@anjula-sack anjula-sack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! @Shrenik0321

@anjula-sack anjula-sack merged commit c95e3bc into sef-global:main Sep 23, 2023
1 check passed
anjula-sack pushed a commit to anjula-sack/scholarx-backend that referenced this pull request Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants