mirror of
https://github.com/linux-do/new-api.git
synced 2025-12-25 08:05:56 +08:00
feat: update cache
This commit is contained in:
@@ -412,7 +412,7 @@ func GetUserQuota(id int) (quota int, err error) {
|
||||
err = DB.Model(&User{}).Where("id = ?", id).Select("quota").Find("a).Error
|
||||
if err != nil {
|
||||
if common.RedisEnabled {
|
||||
go CacheSetUserQuota(id, quota)
|
||||
go cacheSetUserQuota(id, quota)
|
||||
}
|
||||
}
|
||||
return quota, err
|
||||
|
||||
Reference in New Issue
Block a user