New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
拦截器中无法注入TypeORM Model吗? #3289
Comments
可能和执行时机有关,拦截器类的初始化时机非常靠前,早于 typeorm 的model初始化之前了。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我对于Main控制器写了个拦截器,完成用户登录的日志功能,却发现@InjectEntityModel注入的实体为undefined ,如下代码,打印出来的this.m_NW_SYS_LOG_OF_LOGIN 为 undefined
这是为什么呢
The text was updated successfully, but these errors were encountered: