Reset after deletion

This commit is contained in:
James Cole
2022-12-24 08:44:22 +01:00
parent 63184ac298
commit 5f6c84ab4c
19 changed files with 21 additions and 0 deletions

View File

@@ -69,6 +69,7 @@ class DestroyController extends Controller
public function destroy(Webhook $webhook): JsonResponse
{
$this->repository->destroy($webhook);
app('preferences')->mark();
return response()->json([], 204);
}
@@ -98,6 +99,7 @@ class DestroyController extends Controller
}
$this->repository->destroyAttempt($attempt);
app('preferences')->mark();
return response()->json([], 204);
}
@@ -121,6 +123,7 @@ class DestroyController extends Controller
throw new FireflyException('Webhook and webhook message are no match');
}
$this->repository->destroyMessage($message);
app('preferences')->mark();
return response()->json([], 204);
}