Skip to content

Front edits#19

Open
MohammedHassan98 wants to merge 35 commits into
masterfrom
frontEdits
Open

Front edits#19
MohammedHassan98 wants to merge 35 commits into
masterfrom
frontEdits

Conversation

@MohammedHassan98
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
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

Comment thread src/APIs/routes/Notifications.route.ts Outdated
'/push',
checkAuthentication,
(req: Request, res: Response, next: NextFunction) =>
handler({ req, res, next, fn: NotificationsController.delteNotification })
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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