Fix wrong event type being created for update state change and prepare 1.0.2 release
This commit is contained in:
parent
0cd3278f96
commit
66da3c00e0
2 changed files with 5 additions and 3 deletions
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
Changes adhere to [semantic versioning](https://semver.org).
|
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
|
## [1.0.1] - 2023/12/23
|
||||||
|
|
||||||
|
@ -20,6 +20,8 @@ Changes adhere to [semantic versioning](https://semver.org).
|
||||||
|
|
||||||
* Initial release
|
* 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.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
|
[1.0.0]: https://git.myservermanager.com/varakh/upda/releases/tag/1.0.0
|
|
@ -43,7 +43,7 @@ func (s *eventService) createUpdateUpdated(old *Update, new *Update) *Event {
|
||||||
if old.State == new.State {
|
if old.State == new.State {
|
||||||
eventName = api.EventNameUpdateUpdated
|
eventName = api.EventNameUpdateUpdated
|
||||||
} else {
|
} else {
|
||||||
switch old.State {
|
switch new.State {
|
||||||
case api.UpdateStatePending.Value():
|
case api.UpdateStatePending.Value():
|
||||||
eventName = api.EventNameUpdateUpdatedPending
|
eventName = api.EventNameUpdateUpdatedPending
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue