From 9c920908a620fb9b3a0a2fc1e2b1de7e2c9f14bf Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 11 Feb 2025 06:06:30 +0100 Subject: [PATCH] Fix type errors --- app/Services/Internal/Support/AccountServiceTrait.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Services/Internal/Support/AccountServiceTrait.php b/app/Services/Internal/Support/AccountServiceTrait.php index 77f9e08b4d..6f8f18ac90 100644 --- a/app/Services/Internal/Support/AccountServiceTrait.php +++ b/app/Services/Internal/Support/AccountServiceTrait.php @@ -660,7 +660,8 @@ trait AccountServiceTrait // submit to factory: $submission = [ 'group_title' => null, - 'user' => $account->user_id, + 'user' => $account->user, + 'user_group' => $account->user->userGroup, 'transactions' => [ [ 'type' => 'Opening balance', @@ -669,7 +670,8 @@ trait AccountServiceTrait 'source_name' => $sourceName, 'destination_id' => $destId, 'destination_name' => $destName, - 'user' => $account->user_id, + 'user' => $account->user, + 'user_group' => $account->user->userGroup, 'currency_id' => $currency->id, 'order' => 0, 'amount' => $amount,