From 9b860f33e00e20774aee723477ea1c39e8e485a7 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 24 May 2023 18:02:13 +0200 Subject: [PATCH] Fix cancelling of rule events. --- CHANGELOG.md | 6 ++++++ .../Squidex/Areas/Api/Controllers/Rules/RulesController.cs | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16814c704..5647b1dc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [7.6.1] - 2023-05-24 + +### Fixed + +* **Rules**: Cancel rule events was using rule id, not event id. + ## [7.6.0] - 2023-05-20 ### Fixed diff --git a/backend/src/Squidex/Areas/Api/Controllers/Rules/RulesController.cs b/backend/src/Squidex/Areas/Api/Controllers/Rules/RulesController.cs index 2ecd938dc..e85e2a19b 100644 --- a/backend/src/Squidex/Areas/Api/Controllers/Rules/RulesController.cs +++ b/backend/src/Squidex/Areas/Api/Controllers/Rules/RulesController.cs @@ -405,8 +405,8 @@ public sealed class RulesController : ApiController /// Cancels an event. /// /// The name of the app. - /// The event to enqueue. - /// Rule deqeued.. + /// The event to cancel. + /// Rule event cancelled.. /// App or rule event not found.. [HttpDelete] [Route("apps/{app}/rules/events/{id}/")] @@ -422,7 +422,7 @@ public sealed class RulesController : ApiController return NotFound(); } - await ruleEventsRepository.CancelByRuleAsync(id, HttpContext.RequestAborted); + await ruleEventsRepository.CancelByEventAsync(id, HttpContext.RequestAborted); return NoContent(); }