chore: add MEMORY_CACHE_ENABLED env variable

This commit is contained in:
JustSong
2023-09-29 11:38:27 +08:00
parent fd98463611
commit f9b748c2ca
5 changed files with 25 additions and 22 deletions

View File

@@ -94,7 +94,7 @@ func TokenAuth() func(c *gin.Context) {
abortWithMessage(c, http.StatusUnauthorized, err.Error())
return
}
userEnabled, err := model.IsUserEnabled(token.UserId)
userEnabled, err := model.CacheIsUserEnabled(token.UserId)
if err != nil {
abortWithMessage(c, http.StatusInternalServerError, err.Error())
return