Commit 11384db2f97b6cccf621692e4b4467e759ce42ba
Merge branch 'master' of github.com:thingsboard/thingsboard
Showing
1 changed file
with
1 additions
and
4 deletions
@@ -160,10 +160,7 @@ public class DefaultMailService implements MailService { | @@ -160,10 +160,7 @@ public class DefaultMailService implements MailService { | ||
160 | 160 | ||
161 | @Override | 161 | @Override |
162 | public void sendEmail(TenantId tenantId, String email, String subject, String message) throws ThingsboardException { | 162 | public void sendEmail(TenantId tenantId, String email, String subject, String message) throws ThingsboardException { |
163 | - if (apiUsageStateService.getApiUsageState(tenantId).isEmailSendEnabled()) { | ||
164 | - sendMail(mailSender, mailFrom, email, subject, message); | ||
165 | - apiUsageClient.report(tenantId, ApiUsageRecordKey.EMAIL_EXEC_COUNT, 1); | ||
166 | - } | 163 | + sendMail(mailSender, mailFrom, email, subject, message); |
167 | } | 164 | } |
168 | 165 | ||
169 | @Override | 166 | @Override |