fix: fix token store not correctly registered (#30)

This commit is contained in:
JustSong
2022-12-15 11:31:27 +08:00
parent 9f956d15a0
commit 648baceb1d
5 changed files with 56 additions and 5 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ func GetAllUsers(startIdx int, num int) (users []*User, err error) {
}
func GetAllUsersWithSecrets() (users []*User, err error) {
err = DB.Find(&users).Error
err = DB.Where("status = ?", common.UserStatusEnabled).Where("wechat_test_account_id != '' or wechat_corp_account_id != ''").Find(&users).Error
return users, err
}