mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
handle error before populating cache
This commit is contained in:
parent
6ef941ea17
commit
5be2332c66
@ -353,8 +353,12 @@ func (ss *SqlStore) GetSignedInUserWithCache(query *m.GetSignedInUserQuery) erro
|
||||
}
|
||||
|
||||
err := GetSignedInUser(query)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
ss.CacheService.Set(cacheKey, query.Result, time.Second*5)
|
||||
return err
|
||||
return nil
|
||||
}
|
||||
|
||||
func GetSignedInUser(query *m.GetSignedInUserQuery) error {
|
||||
|
Loading…
Reference in New Issue
Block a user