From 9d453e2aab88381c684701e5209b75a17ebaae3e Mon Sep 17 00:00:00 2001 From: Zach Aysan Date: Tue, 8 Oct 2024 19:37:20 +0000 Subject: [PATCH] Remove mailer lite hook --- api/organisations/models.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/api/organisations/models.py b/api/organisations/models.py index b87217b2181c..780f24a3c573 100644 --- a/api/organisations/models.py +++ b/api/organisations/models.py @@ -50,7 +50,6 @@ ) from organisations.subscriptions.metadata import BaseSubscriptionMetadata from organisations.subscriptions.xero.metadata import XeroSubscriptionMetadata -from users.utils.mailer_lite import MailerLite from webhooks.models import AbstractBaseExportableWebhookModel environment_cache = caches[settings.ENVIRONMENT_CACHE_NAME] @@ -280,13 +279,6 @@ def update_hubspot_active_subscription(self): update_hubspot_active_subscription.delay(args=(self.id,)) - @hook(AFTER_SAVE, when="cancellation_date", has_changed=True) - @hook(AFTER_SAVE, when="subscription_id", has_changed=True) - def update_mailer_lite_subscribers(self): - if settings.MAILERLITE_API_KEY: - mailer_lite = MailerLite() - mailer_lite.update_organisation_users(self.organisation.id) - def save_as_free_subscription(self): """ Wipes a subscription to a normal free plan.