fix type
Signed-off-by: dartcafe <github@dartcafe.de>
This commit is contained in:
Родитель
ba217bfda6
Коммит
b6d5519379
|
@ -321,7 +321,7 @@ class PublicController extends Controller {
|
|||
* @PublicPage
|
||||
* @NoAdminRequired
|
||||
*/
|
||||
public function setEmailAddress(string $token, ?string $emailAddress = ''): DataResponse {
|
||||
public function setEmailAddress(string $token, string $emailAddress = ''): DataResponse {
|
||||
return $this->response(function () use ($token, $emailAddress) {
|
||||
return ['share' => $this->shareService->setEmailAddress($token, $emailAddress, true)];
|
||||
});
|
||||
|
|
|
@ -109,7 +109,7 @@ class ShareController extends Controller {
|
|||
* Set email address
|
||||
* @NoAdminRequired
|
||||
*/
|
||||
public function setEmailAddress(string $token, ?string $emailAddress = ''): DataResponse {
|
||||
public function setEmailAddress(string $token, string $emailAddress = ''): DataResponse {
|
||||
return $this->response(function () use ($token, $emailAddress) {
|
||||
return ['share' => $this->shareService->setEmailAddress($token, $emailAddress)];
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче