mirror of
https://github.com/Karaka-Management/oms-Profile.git
synced 2026-02-14 14:48:39 +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 */
|
/** @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;
|
$old = clone $profile;
|
||||||
|
|
||||||
$uploaded = $this->app->moduleManager->get('Media')->uploadFiles(
|
$uploaded = $this->app->moduleManager->get('Media')->uploadFiles(
|
||||||
|
|
@ -185,7 +185,7 @@ final class ApiController extends Controller
|
||||||
$request->getDataList('filenames') ?? [],
|
$request->getDataList('filenames') ?? [],
|
||||||
$uploadedFiles,
|
$uploadedFiles,
|
||||||
$request->header->account,
|
$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,
|
'/Accounts/' . $profile->account->getId() . ' ' . $profile->account->login,
|
||||||
$request->getData('type', 'int'),
|
$request->getData('type', 'int'),
|
||||||
'',
|
'',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user