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