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

Front edits #19

Open
wants to merge 35 commits into
base: master
Choose a base branch
from
Open

Front edits #19

wants to merge 35 commits into from

Conversation

MohammedHassan98
Copy link
Member

No description provided.

Copy link
Contributor

@alaaelkazaz alaaelkazaz left a comment

Choose a reason for hiding this comment

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

It's broken so debug it before merge, and fix your linter to the project linter

'/push',
checkAuthentication,
(req: Request, res: Response, next: NextFunction) =>
handler({ req, res, next, fn: NotificationsController.delteNotification })
Copy link
Contributor

Choose a reason for hiding this comment

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

typo jhere

Comment on lines +38 to +40
case USER_ROLES.PATIENT:
await Promise.all(
user.associated_users.map(async (user: mongoose.Types.ObjectId) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

why we are using promises ? it's inconsistent with our usage for async/await syntax

Comment on lines +47 to +50
case USER_ROLES.SUPERVISOR:
await Promise.all(
user.associated_users.map(async (user: mongoose.Types.ObjectId) => {
const { name, address, profile_picture, _id } =
Copy link
Contributor

Choose a reason for hiding this comment

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

i can't understand why you are changing the logic of login to this until now ?!!

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.

2 participants