## Customer Approval
Mageplaza's customer approval module does not send email by default if customer is approved via API.

To override this logic, we changed `app/code/Mageplaza/CustomerApproval/Model/ListApprove.php`'s approveCustomer function.

Before
```php
    public function approveCustomer($email)
    {
        try {
            $customer = $this->customerRepository->get($email);
            if (!$this->helperData->isEnabledForWebsite($customer->getWebsiteId())) {
                throw new LocalizedException(__('Module is not enabled for the website of this customer'));
            }

            $customerId = $customer->getId();
            if ($this->helperData->getIsApproved($customerId) != AttributeOptions::APPROVED) {
                $this->helperData->approvalCustomerById($customerId, TypeAction::API);
            }
        } catch (Exception $e) {
            throw new LocalizedException(__($e->getMessage()));
        }

        return ['success' => true];
    }
```

After
```php
    public function approveCustomer($email)
    {
        try {
            $customer = $this->customerRepository->get($email);
            if (!$this->helperData->isEnabledForWebsite($customer->getWebsiteId())) {
                throw new LocalizedException(__('Module is not enabled for the website of this customer'));
            }

            $customerId = $customer->getId();
            if ($this->helperData->getIsApproved($customerId) != AttributeOptions::APPROVED) {
                $this->helperData->approvalCustomerById($customerId, TypeAction::API);

                // String true because mageplaza devs are donkeys
                $this->helperData->emailApprovalAction($customer, 'approve', 'true');
            }
        } catch (Exception $e) {
            throw new LocalizedException(__($e->getMessage()));
        }

        return ['success' => true];
    }
```

