Merge pull request #8290 from overleaf/ta-redundant-subscription-saml

Don't Create Redundant Subscription Notification on SAML for Group Plans

GitOrigin-RevId: 99e66201c9423ff7e849b2d68d96651ad6015fd0
This commit is contained in:
Timothée Alby
2022-06-07 08:02:32 +00:00
committed by Copybot
parent 1fe424631f
commit b26c491eb5
2 changed files with 30 additions and 2 deletions
@@ -226,7 +226,7 @@ async function redundantSubscription(userId, providerId, providerName) {
const subscription =
await SubscriptionLocator.promises.getUserIndividualSubscription(userId)
if (subscription) {
if (subscription && !subscription.groupPlan) {
await NotificationsBuilder.promises
.redundantPersonalSubscription(
{