Skip to content

Commit

Permalink
fix: updated email digest management command (#34729)
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadadeeltajamul authored May 8, 2024
1 parent a92c215 commit c72908f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ def add_arguments(self, parser):
Adds management commands parser arguments
"""
cadence_type_choices = [EmailCadence.DAILY, EmailCadence.WEEKLY]
parser.add_argument('cadence_type', choices=cadence_type_choices, required=True)
parser.add_argument('cadence_type', choices=cadence_type_choices)

def handle(self, *args, **kwargs):
"""
Start task to send email digest to users
"""
send_digest_email_to_all_users.delay(args=(kwargs['cadence_type'],))
send_digest_email_to_all_users.delay(kwargs['cadence_type'])

0 comments on commit c72908f

Please sign in to comment.