Skip to content

Commit

Permalink
fix: isinit判断范围过大
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Sep 15, 2024
1 parent a400175 commit 7a843e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/service/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (as *AdminService) DeleteOAuth2App(appID string) error {

func (as *AdminService) IsInit() (bool, error) {
// 获取所有账户,如果没有账户则认为是初始化状态
_, total, err := as.DB.GetAccounts(-1, database.USER_GROUP_ANY, 1, 1, 0)
_, total, err := as.DB.GetAccounts(-1, database.USER_GROUP_ADMIN, 1, 1, 0)

if err != nil {
return true, err
Expand Down

0 comments on commit 7a843e6

Please sign in to comment.