1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

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
run: |
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
run: |
zip -r ./invoiceninja.zip ./

View File

@ -21,6 +21,10 @@
*/
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 (gettype($output) == 'object') {
$output = print_r($output, 1);

View File

@ -78,7 +78,7 @@ class CreateUser
'settings' => null,
]);
event(new UserWasCreated($user, $this->company, Ninja::eventVars()));
event(new UserWasCreated($user, $user, $this->company, Ninja::eventVars()));
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_keys = array_merge($header_invoice_keys, (array)$header_item_keys);
nlog(print_r($merged_keys, 1));
nlog(print_r($merged_values, 1));
// nlog(print_r($merged_keys, 1));
// nlog(print_r($merged_values, 1));
foreach ($merged_keys as &$key) {

View File

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