chore: add MEMORY_CACHE_ENABLED env variable

This commit is contained in:
JustSong committed 2023-09-29 11:38:27 +08:00
1 parent 45adc7fc9a
commit 51db57677e
5 files changed
+25 -22

No files matched your search

+1 -1
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