-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: master
Are you sure you want to change the base?
Front edits #19
Conversation
There was a problem hiding this 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 }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo jhere
case USER_ROLES.PATIENT: | ||
await Promise.all( | ||
user.associated_users.map(async (user: mongoose.Types.ObjectId) => { |
There was a problem hiding this comment.
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
case USER_ROLES.SUPERVISOR: | ||
await Promise.all( | ||
user.associated_users.map(async (user: mongoose.Types.ObjectId) => { | ||
const { name, address, profile_picture, _id } = |
There was a problem hiding this comment.
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 ?!!
No description provided.