diff --git a/action.go b/action.go index dd8f348..0eb7e1f 100644 --- a/action.go +++ b/action.go @@ -93,7 +93,7 @@ func (s Service) CreatePermission(payload model.PermissionCreateOptions) (id str if err != nil { return } - + cache.Roles() return } diff --git a/usermngmt.go b/usermngmt.go index 2d1bf62..a3c1d9a 100644 --- a/usermngmt.go +++ b/usermngmt.go @@ -4,6 +4,7 @@ import ( "errors" "fmt" + "github.com/Selly-Modules/logger" "github.com/Selly-Modules/mongodb" "github.com/Selly-Modules/usermngmt/cache" "github.com/Selly-Modules/usermngmt/database" @@ -55,6 +56,8 @@ func Init(config Config) (*Service, error) { return nil, err } + logger.Init("usermngmt", "") + // Set database database.Set(db, config.TablePrefix)