Compare commits
2 Commits
v0.24.4
...
release/0.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c1fea6522c | ||
|
|
05251b85f0 |
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
All releases can be found on https://code.vikunja.io/api/releases.
|
All releases can be found on https://code.vikunja.io/api/releases.
|
||||||
|
|
||||||
|
## [0.15.1] - 2020-10-20
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* Fix not possible to create tasks if metrics were enabled
|
||||||
|
|
||||||
## [0.15.0] - 2020-10-19
|
## [0.15.0] - 2020-10-19
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
[](https://drone1.kolaente.de/vikunja/api)
|
[](https://drone1.kolaente.de/vikunja/api)
|
||||||
[](LICENSE)
|
[](LICENSE)
|
||||||
[](https://dl.vikunja.io)
|
[](https://dl.vikunja.io)
|
||||||
[](https://hub.docker.com/r/vikunja/api/)
|
[](https://hub.docker.com/r/vikunja/api/)
|
||||||
[](https://try.vikunja.io/api/v1/docs)
|
[](https://try.vikunja.io/api/v1/docs)
|
||||||
[](https://goreportcard.com/report/git.kolaente.de/vikunja/api)
|
[](https://goreportcard.com/report/git.kolaente.de/vikunja/api)
|
||||||
|
|||||||
@@ -72,11 +72,7 @@ func (s *Storage) IncrBy(key string, update int64) (err error) {
|
|||||||
s.mutex.Lock()
|
s.mutex.Lock()
|
||||||
defer s.mutex.Unlock()
|
defer s.mutex.Unlock()
|
||||||
|
|
||||||
v, err := s.Get(key)
|
val, is := s.store[key].(int64)
|
||||||
if err != nil && !e.IsErrValueNotFoundForKey(err) {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
val, is := v.(int64)
|
|
||||||
if !is {
|
if !is {
|
||||||
return &e.ErrValueHasWrongType{Key: key, ExpectedValue: "int64"}
|
return &e.ErrValueHasWrongType{Key: key, ExpectedValue: "int64"}
|
||||||
}
|
}
|
||||||
@@ -90,11 +86,7 @@ func (s *Storage) DecrBy(key string, update int64) (err error) {
|
|||||||
s.mutex.Lock()
|
s.mutex.Lock()
|
||||||
defer s.mutex.Unlock()
|
defer s.mutex.Unlock()
|
||||||
|
|
||||||
v, err := s.Get(key)
|
val, is := s.store[key].(int64)
|
||||||
if err != nil && !e.IsErrValueNotFoundForKey(err) {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
val, is := v.(int64)
|
|
||||||
if !is {
|
if !is {
|
||||||
return &e.ErrValueHasWrongType{Key: key, ExpectedValue: "int64"}
|
return &e.ErrValueHasWrongType{Key: key, ExpectedValue: "int64"}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user