We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e5ae6c7 + 816fa1c commit 566deb6Copy full SHA for 566deb6
backend/src/entities/company-info/use-cases/revoke-invitation-in-company.use.case.ts
@@ -60,10 +60,10 @@ export class RevokeUserInvitationInCompanyUseCase
60
);
61
}
62
63
- foundCompanyWithInvitations.invitations.filter((invitation) => invitation.invitedUserEmail !== email);
+ foundCompanyWithInvitations.invitations = foundCompanyWithInvitations.invitations.filter(
64
+ (invitation) => invitation.invitedUserEmail !== email,
65
+ );
66
await this._dbContext.companyInfoRepository.save(foundCompanyWithInvitations);
- foundInvitation.company = null;
- await this._dbContext.invitationInCompanyRepository.save(foundInvitation);
67
await this._dbContext.invitationInCompanyRepository.remove(foundInvitation);
68
return {
69
success: true,
0 commit comments