Skip to content

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

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