refactor: team invitation module in pseudo fp-ts (#3175)

This commit is contained in:
Mir Arif Hasan
2023-07-13 12:28:03 +06:00
committed by GitHub
parent 6bc748a267
commit 525ba77739
10 changed files with 299 additions and 452 deletions

View File

@@ -181,7 +181,7 @@ export class AdminService {
* @returns an array team invitations
*/
async pendingInvitationCountInTeam(teamID: string) {
const invitations = await this.teamInvitationService.getAllTeamInvitations(
const invitations = await this.teamInvitationService.getTeamInvitations(
teamID,
);
@@ -257,7 +257,7 @@ export class AdminService {
if (E.isRight(userInvitation)) {
await this.teamInvitationService.revokeInvitation(
userInvitation.right.id,
)();
);
}
return E.right(addedUser.right);