diff --git a/app/DataMapper/Analytics/AccountCreated.php b/app/DataMapper/Analytics/AccountCreated.php new file mode 100644 index 000000000000..67a50c68d4da --- /dev/null +++ b/app/DataMapper/Analytics/AccountCreated.php @@ -0,0 +1,49 @@ +delete(); + + LightLogs::create(new AccountDeleted()) + ->increment() + ->batch(); + } else { $company_id = $company->id; $company->delete(); diff --git a/app/Jobs/Account/CreateAccount.php b/app/Jobs/Account/CreateAccount.php index 794a2753077d..70b9d1be080a 100644 --- a/app/Jobs/Account/CreateAccount.php +++ b/app/Jobs/Account/CreateAccount.php @@ -1,7 +1,17 @@ notification(new NewAccountCreated($spaa9f78, $sp035a66))->ninja(); + LightLogs::create(new AnalyticsAccountCreated()) + ->increment() + ->batch(); + return $sp794f3f; } } diff --git a/resources/views/email/template/master.blade.php b/resources/views/email/template/master.blade.php index cf44f3f41687..7ca372a82fee 100644 --- a/resources/views/email/template/master.blade.php +++ b/resources/views/email/template/master.blade.php @@ -13,7 +13,11 @@ if(!isset($design)) $design = 'light';