Skip to content

PrivateEvents#36

Open
vaibhav20325 wants to merge 7 commits into
devclub-iitd:dev-v2from
vaibhav20325:dev
Open

PrivateEvents#36
vaibhav20325 wants to merge 7 commits into
devclub-iitd:dev-v2from
vaibhav20325:dev

Conversation

@vaibhav20325

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

@salujajaskeerat salujajaskeerat left a comment

Copy link
Copy Markdown
Member

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

Comment thread src/models/user.ts Outdated
isAdmin: boolean;
isSuperAdmin: boolean;
roles: mongoose.Types.ObjectId[];
permissions: UserPermImpl[]; //Local Permissions

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

Comment thread src/controllers/event.ts Outdated
if (event === null || user === null) {
throw createError(400, 'Invalid', 'No Such Event Exists');
}
if (req.body.name !== null) {

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