Code cleanup should trigger scan.

This commit is contained in:
James Cole
2022-12-30 20:38:54 +01:00
parent 333c348117
commit 742c84269b
12 changed files with 19 additions and 23 deletions

View File

@@ -37,6 +37,6 @@ class BillDestroyService
*/
public function destroy(Bill $bill): void
{
$bill->delete();
$bill->delete();
}
}

View File

@@ -39,7 +39,7 @@ class BudgetDestroyService
*/
public function destroy(Budget $budget): void
{
$budget->delete();
$budget->delete();
// also delete auto budget:
foreach ($budget->autoBudgets()->get() as $autoBudget) {

View File

@@ -39,7 +39,7 @@ class CategoryDestroyService
*/
public function destroy(Category $category): void
{
$category->delete();
$category->delete();
// also delete all relations between categories and transaction journals:
DB::table('category_transaction_journal')->where('category_id', (int)$category->id)->delete();

View File

@@ -38,6 +38,6 @@ class CurrencyDestroyService
*/
public function destroy(TransactionCurrency $currency): void
{
$currency->delete();
$currency->delete();
}
}