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

PrivateEvents #36

Open
wants to merge 7 commits into
base: dev-v2
Choose a base branch
from
Open

PrivateEvents #36

wants to merge 7 commits into from

Conversation

vaibhav20325
Copy link
Collaborator

Private events implemented, Changed the interfaces EventImpl, BodyImpl and BodyMemberImpl and the corresponding schemas.
Modified getEvent and getEvents apis

salujajaskeerat and others added 2 commits July 9, 2021 17:38
* updating changes

* Issue #34 resolved

* Added cron-job : TrendUpdate News
@vaibhav20325 vaibhav20325 changed the title Dev PrivateEvents Jul 22, 2021
Copy link
Member

@salujajaskeerat salujajaskeerat left a comment

Choose a reason for hiding this comment

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

Minor improvements in code style

@@ -25,8 +26,28 @@ export interface UserImpl extends Document {
reminders: Object;
isAdmin: boolean;
isSuperAdmin: boolean;
roles: mongoose.Types.ObjectId[];
permissions: UserPermImpl[]; //Local Permissions
Copy link
Member

Choose a reason for hiding this comment

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

remove this it is storing redundant data, Instead, make a single function that takes user roles array and return the permissions out of it.

if (event === null || user === null) {
throw createError(400, 'Invalid', 'No Such Event Exists');
}
if (req.body.name !== null) {
Copy link
Member

Choose a reason for hiding this comment

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

Fix The update method, the same can be done using a single command.

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