From 4046695f1c47353c8b0d8ce5e7c16e64d6567bbd Mon Sep 17 00:00:00 2001 From: Varakh Date: Tue, 11 Jun 2024 00:04:11 +0200 Subject: [PATCH] hotfix(3.0.1): Fixed finding proper remaining Action invocations by their state --- CHANGELOG.md | 6 ++++-- server/repository_action_invocation.go | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b326dad..88549f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,9 @@ Changes adhere to [semantic versioning](https://semver.org). -## [3.0.1] - UNRELEASED +## [3.0.1] - 2024/06/10 -* ... +* Fixed finding proper remaining Action invocations by their state ## [3.0.0] - 2024/06/10 @@ -63,6 +63,8 @@ Changes adhere to [semantic versioning](https://semver.org). * Initial release +[3.0.1]: https://git.myservermanager.com/varakh/upda/releases/tag/3.0.1 + [3.0.0]: https://git.myservermanager.com/varakh/upda/releases/tag/3.0.0 [2.0.1]: https://git.myservermanager.com/varakh/upda/releases/tag/2.0.1 diff --git a/server/repository_action_invocation.go b/server/repository_action_invocation.go index d93b035..baf62ef 100644 --- a/server/repository_action_invocation.go +++ b/server/repository_action_invocation.go @@ -226,7 +226,7 @@ func (r *actionInvocationDbRepo) deleteByUpdatedAtBeforeAndStates(time time.Time func translateActionInvocationState(state ...api.ActionInvocationState) []string { states := make([]string, 0, len(state)) - if len(states) > 0 { + if len(state) > 0 { for _, s := range state { states = append(states, s.Value()) }