Skip to content

Commit

Permalink
Implement script to create customer account for customer placed order…
Browse files Browse the repository at this point in the history
… before (fossasia#277)

* implement script to create customer account for customer placed order before
  • Loading branch information
lcduong committed Aug 15, 2024
1 parent b3bee20 commit d651212
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def handle(self, *args, **options):
# Get all orders email and check if they have a customer account or not
for order in orders:
if order.email:
customer = Customer.objects.filter(email=order.email).first()
customer = Customer.objects.filter(email__iexact=order.email).first()
if not customer:
name_parts_data = {
"_scheme": "full",
Expand Down

0 comments on commit d651212

Please sign in to comment.