mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-01-11 15:28:40 +00:00
load account with profile
This commit is contained in:
parent
fb1bbcf230
commit
af8791fe33
|
|
@ -177,7 +177,7 @@ final class ApiController extends Controller
|
|||
}
|
||||
|
||||
/** @var Profile $profile */
|
||||
$profile = ProfileMapper::get()->where('account', $request->header->account)->execute();
|
||||
$profile = ProfileMapper::get()->with('account')->where('account', $request->header->account)->execute();
|
||||
$old = clone $profile;
|
||||
|
||||
$uploaded = $this->app->moduleManager->get('Media')->uploadFiles(
|
||||
|
|
@ -185,7 +185,7 @@ final class ApiController extends Controller
|
|||
$request->getDataList('filenames') ?? [],
|
||||
$uploadedFiles,
|
||||
$request->header->account,
|
||||
__DIR__ . '/../../../Modules/Media/Files/Accounts/' . $profile->account->getId() . ' ' . $profile->account->login,
|
||||
__DIR__ . '/../../../Modules/Media/Files/Accounts/' . $profile->account->getId(),
|
||||
'/Accounts/' . $profile->account->getId() . ' ' . $profile->account->login,
|
||||
$request->getData('type', 'int'),
|
||||
'',
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user