Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferril committed Jun 7, 2024
1 parent 7e889fe commit 59a9664
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions engine/apps/alerts/tasks/notify_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,20 +602,3 @@ def send_user_notification_signal(log_record_pk):
# FAILED notifications (see NotificationDeliveryStep and ERRORS_TO_SEND_IN_SLACK_CHANNEL).
# No need to call it here.
pass


# def send_sms(bundle_uuid, user_id):
# from apps.alerts.models import BundledNotification
# from apps.base.models import UserNotificationPolicyLogRecord, UserNotificationPolicy
# notifications = BundledNotification.objects.filter(bundle_uuid=bundle_uuid).select_related("notification_policy")
# for i in notifications:
# log_record = UserNotificationPolicyLogRecord(
# author_id=user_id,
# type=UserNotificationPolicyLogRecord.TYPE_PERSONAL_NOTIFICATION_SUCCESS,
# notification_policy=i.notification_policy,
# alert_group_id=i.alert_group_id,
# notification_step=UserNotificationPolicy.Step.NOTIFY,
# notification_channel=UserNotificationPolicy.NotificationChannel.SMS,
# )
# log_record.save()
# notifications.delete()

0 comments on commit 59a9664

Please sign in to comment.