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

Invitation #135

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
edb3f31
feat(invitation): remove pending and declined membership
RomainGuarinoni Mar 24, 2022
cdf3a5f
feat(invitation): create invitation entity
RomainGuarinoni Mar 24, 2022
39834ff
feat(invitation): route group get invitation received
RomainGuarinoni Mar 25, 2022
a228f66
feat(invitation): route group get invitation sent
RomainGuarinoni Mar 25, 2022
64bfc70
feat(invitation): route profil get invitation sent and received
RomainGuarinoni Mar 25, 2022
d00d30a
feat(invitation): add route for profil send invitation to group
RomainGuarinoni Mar 25, 2022
cf82f9d
feat(invitation): delete profil sent invitation
RomainGuarinoni Mar 25, 2022
e1e7f50
feat(invitation): add description to invitation
RomainGuarinoni Mar 28, 2022
d28637b
feat(invitation): group can send invitation
RomainGuarinoni Mar 28, 2022
1e7a373
feat(invitation): logged user can see invitor of groupToMusician invi…
RomainGuarinoni Mar 28, 2022
78c704f
feat(invitation): group can delete invitation
RomainGuarinoni Mar 28, 2022
b0d5741
feat(invitation): add route for profil to accept invitation
RomainGuarinoni Mar 28, 2022
5b71285
feat(invitation): user can declin invitation
RomainGuarinoni Mar 28, 2022
e0258cf
feat(invitation): group can accept invitation
RomainGuarinoni Mar 28, 2022
7ce7de4
feat(invitation): group can decline invitation
RomainGuarinoni Mar 28, 2022
17c72e1
feat(invitation): delete invitations when accept
RomainGuarinoni Mar 28, 2022
15452fb
feat(invitation): add notif when group receive invitation
RomainGuarinoni Mar 28, 2022
04e29f7
feat(invitation): add notif when new musician joined group
RomainGuarinoni Mar 28, 2022
55f2a78
feat(invitation): add notif when group decline invitation
RomainGuarinoni Mar 28, 2022
0908b57
feat(invitation): add notif when musician decline invitation
RomainGuarinoni Mar 28, 2022
6cf4198
feat: update postgres
RomainGuarinoni Dec 8, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions api/controllers/groups/admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,7 @@ export const addGroupLiteAdmins = async (
},
);

if (
!musicianToMakeLiteAdmin ||
musicianToMakeLiteAdmin.membership == 'declined' ||
musicianToMakeLiteAdmin.membership == 'pending'
) {
if (!musicianToMakeLiteAdmin) {
const err = new Error(`E_MUSICIAN_NOT_MEMBER`);
err['musicianId'] = new_lite_admins_id[i];
err['name'] = 'E_MUSICIAN_NOT_MEMBER';
Expand Down
9 changes: 9 additions & 0 deletions api/controllers/groups/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,12 @@ export {
transferGroupAdmin,
addGroupLiteAdmins,
} from './admin';

export {
getGroupInvitationsReceived,
getGroupInvitationsSent,
postGroupToUserInvitation,
deleteGroupInvitationById,
acceptGroupInvitation,
declineGroupInvitation,
} from './invitation';
Loading