Skip to content
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

[Bug]: use GetDB() replace use global DB #18

Open
qingfeng777 opened this issue Jul 1, 2022 · 0 comments
Open

[Bug]: use GetDB() replace use global DB #18

qingfeng777 opened this issue Jul 1, 2022 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@qingfeng777
Copy link
Contributor

版本

v1.0

Node 版本

v16.14.0

Golang 版本

go 1.18

是否依旧存在

可以

bug描述

service/auth/auth/auth_dao.go:18, 不应直接获取。

修改建议

使用Global.GetDB(), 可以通过配置控制是否debug模式。

@qingfeng777 qingfeng777 added bug Something isn't working good first issue Good for newcomers labels Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant