Fix for usercreated event

This commit is contained in:
David Bomba 2021-01-14 20:31:27 +11:00
parent 8b22fa5a47
commit 1ff29a2d55
6 changed files with 9 additions and 5 deletions

View File

@ -47,7 +47,7 @@ jobs:
- name: Cleanup Builds - name: Cleanup Builds
run: | run: |
sudo rm -rf bootstrap/cache/* sudo rm -rf bootstrap/cache/*
sudo rm -rf node_modules
- name: Build project # This would actually build your project, using zip for an example artifact - name: Build project # This would actually build your project, using zip for an example artifact
run: | run: |
zip -r ./invoiceninja.zip ./ zip -r ./invoiceninja.zip ./

View File

@ -21,6 +21,10 @@
*/ */
function nlog($output, $context = []): void function nlog($output, $context = []): void
{ {
$trace = debug_backtrace();
\Illuminate\Support\Facades\Log::channel('invoiceninja')->info(print_r($trace[1]['class'],1), []);
if (config('ninja.expanded_logging')) { if (config('ninja.expanded_logging')) {
if (gettype($output) == 'object') { if (gettype($output) == 'object') {
$output = print_r($output, 1); $output = print_r($output, 1);

View File

@ -78,7 +78,7 @@ class CreateUser
'settings' => null, 'settings' => null,
]); ]);
event(new UserWasCreated($user, $this->company, Ninja::eventVars())); event(new UserWasCreated($user, $user, $this->company, Ninja::eventVars()));
return $user; return $user;
} }

0
public/css/card-js.min.css vendored Normal file → Executable file
View File

View File

@ -58,8 +58,8 @@ class ExportCsvTest extends TestCase
$merged_values = array_merge($header_invoice_values, (array)$header_item_values); $merged_values = array_merge($header_invoice_values, (array)$header_item_values);
$merged_keys = array_merge($header_invoice_keys, (array)$header_item_keys); $merged_keys = array_merge($header_invoice_keys, (array)$header_item_keys);
nlog(print_r($merged_keys, 1)); // nlog(print_r($merged_keys, 1));
nlog(print_r($merged_values, 1)); // nlog(print_r($merged_values, 1));
foreach ($merged_keys as &$key) { foreach ($merged_keys as &$key) {

View File

@ -195,7 +195,7 @@ class LoginTest extends TestCase
$arr = $response->json(); $arr = $response->json();
nlog(print_r($arr, 1)); // nlog(print_r($arr, 1));
$response->assertStatus(200); $response->assertStatus(200);
} }