Browse Source

Fix cancelling of rule events.

pull/998/head
Sebastian 3 years ago
parent
commit
9b860f33e0
  1. 6
      CHANGELOG.md
  2. 6
      backend/src/Squidex/Areas/Api/Controllers/Rules/RulesController.cs

6
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). 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 ## [7.6.0] - 2023-05-20
### Fixed ### Fixed

6
backend/src/Squidex/Areas/Api/Controllers/Rules/RulesController.cs

@ -405,8 +405,8 @@ public sealed class RulesController : ApiController
/// Cancels an event. /// Cancels an event.
/// </summary> /// </summary>
/// <param name="app">The name of the app.</param> /// <param name="app">The name of the app.</param>
/// <param name="id">The event to enqueue.</param> /// <param name="id">The event to cancel.</param>
/// <response code="204">Rule deqeued.</response>. /// <response code="204">Rule event cancelled.</response>.
/// <response code="404">App or rule event not found.</response>. /// <response code="404">App or rule event not found.</response>.
[HttpDelete] [HttpDelete]
[Route("apps/{app}/rules/events/{id}/")] [Route("apps/{app}/rules/events/{id}/")]
@ -422,7 +422,7 @@ public sealed class RulesController : ApiController
return NotFound(); return NotFound();
} }
await ruleEventsRepository.CancelByRuleAsync(id, HttpContext.RequestAborted); await ruleEventsRepository.CancelByEventAsync(id, HttpContext.RequestAborted);
return NoContent(); return NoContent();
} }

Loading…
Cancel
Save