mirror of
https://git.sr.ht/~ashkeel/strimertul
synced 2024-09-18 01:50:50 +00:00
fix: assign initial loyalty points values correctly
This commit is contained in:
parent
0262bcea07
commit
8178366038
2 changed files with 7 additions and 1 deletions
|
@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
## [current]
|
||||
|
||||
### Fixed
|
||||
|
||||
- The "Give points" dialog will now convert mixed case names to be lowercase instead of adding broken entries.
|
||||
- The loyalty points entry were assigned incorrectly upon startup, this has been fixed
|
||||
|
||||
## [3.1.3] - 2023-03-14
|
||||
|
||||
### Changed
|
||||
|
|
|
@ -114,7 +114,8 @@ func NewManager(db *database.LocalDBClient, twitchManager *twitch.Manager, logge
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
loyalty.points.SetKey(k, entry)
|
||||
|
||||
loyalty.points.SetKey(k[len(PointsPrefix):], entry)
|
||||
}
|
||||
|
||||
// SubscribePrefix for changes
|
||||
|
|
Loading…
Reference in a new issue