Ignore _url when searching for members
This commit is contained in:
parent
a9eafb44be
commit
e5008d127d
|
@ -23,7 +23,7 @@ class SearchAction
|
||||||
|
|
||||||
$api = Nami::login($credentials->mglnr, $credentials->password);
|
$api = Nami::login($credentials->mglnr, $credentials->password);
|
||||||
|
|
||||||
$results = NamiSearchAction::run($api, $request->input('page', 1), $request->except('page'), 50);
|
$results = NamiSearchAction::run($api, $request->input('page', 1), $request->except(['page', '_url']), 50);
|
||||||
$results->transform(fn ($member) => ['id' => $member->memberId, 'name' => $member->firstname . ' ' . $member->lastname]);
|
$results->transform(fn ($member) => ['id' => $member->memberId, 'name' => $member->firstname . ' ' . $member->lastname]);
|
||||||
return $results;
|
return $results;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue