Set user ID from object, fix #10891

This commit is contained in:
James Cole
2025-09-11 19:37:34 +02:00
parent c38c752520
commit deae94b658
3 changed files with 16 additions and 14 deletions

View File

@@ -373,7 +373,7 @@ class CurrencyRepository implements CurrencyRepositoryInterface, UserGroupInterf
return CurrencyExchangeRate::create(
[
'user_id' => $this->user->id,
'user_group_id' => $this->user->user_group_id,
'user_group_id' => $this->userGroup->id,
'from_currency_id' => $fromCurrency->id,
'to_currency_id' => $toCurrency->id,
'date' => $date,