|
|
@ -75,10 +75,15 @@ func checkHooks(ctx context.Context, logger log.Logger, autofix bool) error { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func checkUserStarNum(ctx context.Context, logger log.Logger, autofix bool) error { |
|
|
|
func checkUserStarNum(ctx context.Context, logger log.Logger, autofix bool) error { |
|
|
|
|
|
|
|
if autofix { |
|
|
|
if err := models.DoctorUserStarNum(); err != nil { |
|
|
|
if err := models.DoctorUserStarNum(); err != nil { |
|
|
|
logger.Critical("Unable update User Stars numbers") |
|
|
|
logger.Critical("Unable update User Stars numbers") |
|
|
|
return err |
|
|
|
return err |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
logger.Info("Updated User Stars numbers.") |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
logger.Info("No check available for User Stars numbers (skipped)") |
|
|
|
|
|
|
|
} |
|
|
|
return nil |
|
|
|
return nil |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|