Fix wrong event type being created for update state change and prepare 1.0.2 release
All checks were successful
/ build (push) Successful in 3m19s
/ release (push) Successful in 3m59s

This commit is contained in:
Varakh 2023-12-24 00:03:30 +01:00
parent 0cd3278f96
commit 66da3c00e0
2 changed files with 5 additions and 3 deletions

View file

@ -2,9 +2,9 @@
Changes adhere to [semantic versioning](https://semver.org).
## [1.0.2] - UNRELEASED
## [1.0.2] - 2023/12/23
* ...
* Fix wrong event type being created for update state change
## [1.0.1] - 2023/12/23
@ -20,6 +20,8 @@ Changes adhere to [semantic versioning](https://semver.org).
* Initial release
[1.0.2]: https://git.myservermanager.com/varakh/upda/releases/tag/1.0.2
[1.0.1]: https://git.myservermanager.com/varakh/upda/releases/tag/1.0.1
[1.0.0]: https://git.myservermanager.com/varakh/upda/releases/tag/1.0.0

View file

@ -43,7 +43,7 @@ func (s *eventService) createUpdateUpdated(old *Update, new *Update) *Event {
if old.State == new.State {
eventName = api.EventNameUpdateUpdated
} else {
switch old.State {
switch new.State {
case api.UpdateStatePending.Value():
eventName = api.EventNameUpdateUpdatedPending
break