From f8e7282cda00b9b042ab6d41f329f458725a8f26 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 | 4 +++- server/repository_action_invocation.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b326dad..0ea7f4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ Changes adhere to [semantic versioning](https://semver.org). ## [3.0.1] - UNRELEASED -* ... +* 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()) }