mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-04 03:43:07 +00:00
Reset after deletion
This commit is contained in:
@@ -162,6 +162,7 @@ class DestroyController extends Controller
|
|||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
app('preferences')->mark();
|
||||||
|
|
||||||
return response()->json([], 204);
|
return response()->json([], 204);
|
||||||
}
|
}
|
||||||
|
@@ -69,6 +69,7 @@ class DestroyController extends Controller
|
|||||||
public function destroy(Account $account): JsonResponse
|
public function destroy(Account $account): JsonResponse
|
||||||
{
|
{
|
||||||
$this->repository->destroy($account, null);
|
$this->repository->destroy($account, null);
|
||||||
|
app('preferences')->mark();
|
||||||
|
|
||||||
return response()->json([], 204);
|
return response()->json([], 204);
|
||||||
}
|
}
|
||||||
|
@@ -73,6 +73,7 @@ class DestroyController extends Controller
|
|||||||
public function destroy(Attachment $attachment): JsonResponse
|
public function destroy(Attachment $attachment): JsonResponse
|
||||||
{
|
{
|
||||||
$this->repository->destroy($attachment);
|
$this->repository->destroy($attachment);
|
||||||
|
app('preferences')->mark();
|
||||||
|
|
||||||
return response()->json([], 204);
|
return response()->json([], 204);
|
||||||
}
|
}
|
||||||
|
@@ -71,6 +71,7 @@ class DestroyController extends Controller
|
|||||||
public function destroy(AvailableBudget $availableBudget): JsonResponse
|
public function destroy(AvailableBudget $availableBudget): JsonResponse
|
||||||
{
|
{
|
||||||
$this->abRepository->destroyAvailableBudget($availableBudget);
|
$this->abRepository->destroyAvailableBudget($availableBudget);
|
||||||
|
app('preferences')->mark();
|
||||||
|
|
||||||
return response()->json([], 204);
|
return response()->json([], 204);
|
||||||
}
|
}
|
||||||
|
@@ -67,6 +67,7 @@ class DestroyController extends Controller
|
|||||||
public function destroy(Bill $bill): JsonResponse
|
public function destroy(Bill $bill): JsonResponse
|
||||||
{
|
{
|
||||||
$this->repository->destroy($bill);
|
$this->repository->destroy($bill);
|
||||||
|
app('preferences')->mark();
|
||||||
|
|
||||||
return response()->json([], 204);
|
return response()->json([], 204);
|
||||||
}
|
}
|
||||||
|
@@ -67,6 +67,7 @@ class DestroyController extends Controller
|
|||||||
public function destroy(Budget $budget): JsonResponse
|
public function destroy(Budget $budget): JsonResponse
|
||||||
{
|
{
|
||||||
$this->repository->destroy($budget);
|
$this->repository->destroy($budget);
|
||||||
|
app('preferences')->mark();
|
||||||
|
|
||||||
return response()->json([], 204);
|
return response()->json([], 204);
|
||||||
}
|
}
|
||||||
|
@@ -77,6 +77,7 @@ class DestroyController extends Controller
|
|||||||
throw new FireflyException('20028: The budget limit does not belong to the budget.');
|
throw new FireflyException('20028: The budget limit does not belong to the budget.');
|
||||||
}
|
}
|
||||||
$this->blRepository->destroyBudgetLimit($budgetLimit);
|
$this->blRepository->destroyBudgetLimit($budgetLimit);
|
||||||
|
app('preferences')->mark();
|
||||||
|
|
||||||
return response()->json([], 204);
|
return response()->json([], 204);
|
||||||
}
|
}
|
||||||
|
@@ -67,6 +67,7 @@ class DestroyController extends Controller
|
|||||||
public function destroy(Category $category): JsonResponse
|
public function destroy(Category $category): JsonResponse
|
||||||
{
|
{
|
||||||
$this->repository->destroy($category);
|
$this->repository->destroy($category);
|
||||||
|
app('preferences')->mark();
|
||||||
|
|
||||||
return response()->json([], 204);
|
return response()->json([], 204);
|
||||||
}
|
}
|
||||||
|
@@ -70,6 +70,7 @@ class DestroyController extends Controller
|
|||||||
public function destroy(ObjectGroup $objectGroup): JsonResponse
|
public function destroy(ObjectGroup $objectGroup): JsonResponse
|
||||||
{
|
{
|
||||||
$this->repository->destroy($objectGroup);
|
$this->repository->destroy($objectGroup);
|
||||||
|
app('preferences')->mark();
|
||||||
|
|
||||||
return response()->json([], 204);
|
return response()->json([], 204);
|
||||||
}
|
}
|
||||||
|
@@ -67,6 +67,7 @@ class DestroyController extends Controller
|
|||||||
public function destroy(PiggyBank $piggyBank): JsonResponse
|
public function destroy(PiggyBank $piggyBank): JsonResponse
|
||||||
{
|
{
|
||||||
$this->repository->destroy($piggyBank);
|
$this->repository->destroy($piggyBank);
|
||||||
|
app('preferences')->mark();
|
||||||
|
|
||||||
return response()->json([], 204);
|
return response()->json([], 204);
|
||||||
}
|
}
|
||||||
|
@@ -67,6 +67,7 @@ class DestroyController extends Controller
|
|||||||
public function destroy(Recurrence $recurrence): JsonResponse
|
public function destroy(Recurrence $recurrence): JsonResponse
|
||||||
{
|
{
|
||||||
$this->repository->destroy($recurrence);
|
$this->repository->destroy($recurrence);
|
||||||
|
app('preferences')->mark();
|
||||||
|
|
||||||
return response()->json([], 204);
|
return response()->json([], 204);
|
||||||
}
|
}
|
||||||
|
@@ -71,6 +71,7 @@ class DestroyController extends Controller
|
|||||||
public function destroy(Rule $rule): JsonResponse
|
public function destroy(Rule $rule): JsonResponse
|
||||||
{
|
{
|
||||||
$this->ruleRepository->destroy($rule);
|
$this->ruleRepository->destroy($rule);
|
||||||
|
app('preferences')->mark();
|
||||||
|
|
||||||
return response()->json([], 204);
|
return response()->json([], 204);
|
||||||
}
|
}
|
||||||
|
@@ -71,6 +71,7 @@ class DestroyController extends Controller
|
|||||||
public function destroy(RuleGroup $ruleGroup): JsonResponse
|
public function destroy(RuleGroup $ruleGroup): JsonResponse
|
||||||
{
|
{
|
||||||
$this->ruleGroupRepository->destroy($ruleGroup, null);
|
$this->ruleGroupRepository->destroy($ruleGroup, null);
|
||||||
|
app('preferences')->mark();
|
||||||
|
|
||||||
return response()->json([], 204);
|
return response()->json([], 204);
|
||||||
}
|
}
|
||||||
|
@@ -71,6 +71,7 @@ class DestroyController extends Controller
|
|||||||
public function destroy(Tag $tag): JsonResponse
|
public function destroy(Tag $tag): JsonResponse
|
||||||
{
|
{
|
||||||
$this->repository->destroy($tag);
|
$this->repository->destroy($tag);
|
||||||
|
app('preferences')->mark();
|
||||||
|
|
||||||
return response()->json([], 204);
|
return response()->json([], 204);
|
||||||
}
|
}
|
||||||
|
@@ -122,6 +122,7 @@ class DestroyController extends Controller
|
|||||||
public function destroyJournal(TransactionJournal $transactionJournal): JsonResponse
|
public function destroyJournal(TransactionJournal $transactionJournal): JsonResponse
|
||||||
{
|
{
|
||||||
$this->repository->destroyJournal($transactionJournal);
|
$this->repository->destroyJournal($transactionJournal);
|
||||||
|
app('preferences')->mark();
|
||||||
|
|
||||||
return response()->json([], 204);
|
return response()->json([], 204);
|
||||||
}
|
}
|
||||||
|
@@ -88,6 +88,7 @@ class DestroyController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->repository->destroy($currency);
|
$this->repository->destroy($currency);
|
||||||
|
app('preferences')->mark();
|
||||||
|
|
||||||
return response()->json([], 204);
|
return response()->json([], 204);
|
||||||
}
|
}
|
||||||
|
@@ -71,6 +71,7 @@ class DestroyController extends Controller
|
|||||||
public function destroy(TransactionJournalLink $link): JsonResponse
|
public function destroy(TransactionJournalLink $link): JsonResponse
|
||||||
{
|
{
|
||||||
$this->repository->destroyLink($link);
|
$this->repository->destroyLink($link);
|
||||||
|
app('preferences')->mark();
|
||||||
|
|
||||||
return response()->json([], 204);
|
return response()->json([], 204);
|
||||||
}
|
}
|
||||||
|
@@ -82,6 +82,7 @@ class DestroyController extends Controller
|
|||||||
throw new FireflyException('200020: Link type cannot be changed.');
|
throw new FireflyException('200020: Link type cannot be changed.');
|
||||||
}
|
}
|
||||||
$this->repository->destroy($linkType);
|
$this->repository->destroy($linkType);
|
||||||
|
app('preferences')->mark();
|
||||||
|
|
||||||
return response()->json([], 204);
|
return response()->json([], 204);
|
||||||
}
|
}
|
||||||
|
@@ -69,6 +69,7 @@ class DestroyController extends Controller
|
|||||||
public function destroy(Webhook $webhook): JsonResponse
|
public function destroy(Webhook $webhook): JsonResponse
|
||||||
{
|
{
|
||||||
$this->repository->destroy($webhook);
|
$this->repository->destroy($webhook);
|
||||||
|
app('preferences')->mark();
|
||||||
|
|
||||||
return response()->json([], 204);
|
return response()->json([], 204);
|
||||||
}
|
}
|
||||||
@@ -98,6 +99,7 @@ class DestroyController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->repository->destroyAttempt($attempt);
|
$this->repository->destroyAttempt($attempt);
|
||||||
|
app('preferences')->mark();
|
||||||
|
|
||||||
return response()->json([], 204);
|
return response()->json([], 204);
|
||||||
}
|
}
|
||||||
@@ -121,6 +123,7 @@ class DestroyController extends Controller
|
|||||||
throw new FireflyException('Webhook and webhook message are no match');
|
throw new FireflyException('Webhook and webhook message are no match');
|
||||||
}
|
}
|
||||||
$this->repository->destroyMessage($message);
|
$this->repository->destroyMessage($message);
|
||||||
|
app('preferences')->mark();
|
||||||
|
|
||||||
return response()->json([], 204);
|
return response()->json([], 204);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user