fix: lint project (#2693)

This commit is contained in:
David Nguyen
2026-05-08 16:04:22 +10:00
committed by GitHub
parent edbf65969b
commit 8671f269e8
1414 changed files with 12867 additions and 24335 deletions
@@ -82,9 +82,7 @@ export const deleteOrganisationMembers = async ({
const { organisationClaim } = organisation;
const membersToDelete = organisation.members.filter((member) =>
organisationMemberIds.includes(member.id),
);
const membersToDelete = organisation.members.filter((member) => organisationMemberIds.includes(member.id));
const inviteCount = organisation.invites.length;
const newMemberCount = organisation.members.length + inviteCount - membersToDelete.length;
@@ -92,11 +90,7 @@ export const deleteOrganisationMembers = async ({
// Removing members is a reducing operation, so we don't gate it on the
// subscription being present. Sync Stripe only when one exists.
if (organisation.subscription) {
await syncMemberCountWithStripeSeatPlan(
organisation.subscription,
organisationClaim,
newMemberCount,
);
await syncMemberCountWithStripeSeatPlan(organisation.subscription, organisationClaim, newMemberCount);
}
const removedUserIds = membersToDelete.map((member) => member.userId);