mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 21:52:43 +08:00
handle error before populating cache
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user