From 4657d34ae462423cd8501a5adb4d084cbc3366b8 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 4 Mar 2023 22:18:37 +0100 Subject: [PATCH] Fix request --- app/Api/V1/Requests/Data/DestroyRequest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Api/V1/Requests/Data/DestroyRequest.php b/app/Api/V1/Requests/Data/DestroyRequest.php index bc8026c703..299ecf138b 100644 --- a/app/Api/V1/Requests/Data/DestroyRequest.php +++ b/app/Api/V1/Requests/Data/DestroyRequest.php @@ -53,7 +53,8 @@ class DestroyRequest extends FormRequest public function rules(): array { $valid = 'budgets,bills,piggy_banks,rules,recurring,categories,tags,object_groups'. - ',accounts,asset_accounts,expense_accounts,revenue_accounts,liabilities,transactions,withdrawals,deposits,transfers'; + ',accounts,asset_accounts,expense_accounts,revenue_accounts,liabilities,transactions,withdrawals,deposits,transfers'. + ',not_assets_liabilities'; return [ 'objects' => sprintf('required|min:1|string|in:%s', $valid),