Add API route to move transactions from one account to another.

This commit is contained in:
James Cole
2021-04-03 13:56:45 +02:00
parent 51f3b17ad2
commit 468a53d587
5 changed files with 186 additions and 1 deletions

View File

@@ -115,7 +115,7 @@ class AccountDestroyService
* @param Account $account
* @param Account $moveTo
*/
private function moveTransactions(Account $account, Account $moveTo): void
public function moveTransactions(Account $account, Account $moveTo): void
{
DB::table('transactions')->where('account_id', $account->id)->update(['account_id' => $moveTo->id]);
}