mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-05-30 06:49:11 +02:00
Move TwoFAccounts order saving to business service
This commit is contained in:
parent
77721d79a6
commit
59a63f5a2a
@ -132,7 +132,7 @@ class TwoFAccountController extends Controller
|
|||||||
{
|
{
|
||||||
$validated = $request->validated();
|
$validated = $request->validated();
|
||||||
|
|
||||||
TwoFAccount::setNewOrder($validated['orderedIds']);
|
$this->twofaccountService->saveOrder($validated['orderedIds']);
|
||||||
|
|
||||||
return response()->json(['message' => 'order saved'], 200);
|
return response()->json(['message' => 'order saved'], 200);
|
||||||
}
|
}
|
||||||
|
@ -179,6 +179,14 @@ class TwoFAccountService
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Save TwoFAccounts order
|
||||||
|
*/
|
||||||
|
public function saveOrder(array $ids)
|
||||||
|
{
|
||||||
|
TwoFAccount::setNewOrder($ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// ########################################################################################################################
|
// ########################################################################################################################
|
||||||
// ########################################################################################################################
|
// ########################################################################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user