fix(reduce): wrong key while fetching last event
This commit is contained in:
parent
5b0d9e4dd3
commit
91f71b33cd
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ func (c *Copaing) HourSinceLastEvent() uint {
|
|||
utils.SendAlert("xp/member.go - Getting redis client (get)", err.Error())
|
||||
return 0
|
||||
}
|
||||
res := client.Get(context.Background(), fmt.Sprintf("%s:%s", c.GenKey(""), LastEvent))
|
||||
res := client.Get(context.Background(), c.GenKey(LastEvent))
|
||||
if errors.Is(res.Err(), redis.Nil) {
|
||||
return 0
|
||||
} else if res.Err() != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue