New functions for individual field updates
(userId int, status bool)
| 198 | |
| 199 | // New functions for individual field updates |
| 200 | func updateUserStatusCache(userId int, status bool) error { |
| 201 | statusInt := common.UserStatusEnabled |
| 202 | if !status { |
| 203 | statusInt = common.UserStatusDisabled |
| 204 | } |
| 205 | return updateUserCacheField(userId, "Status", statusInt) |
| 206 | } |
| 207 | |
| 208 | func updateUserQuotaCache(userId int, quota int) error { |
| 209 | if !common.RedisEnabled { |
nothing calls this directly
no test coverage detected