Skip to content

Commit

Permalink
fix: fix analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
zmh-program committed Jan 24, 2024
1 parent 3332a1a commit 196f150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func GetUserTypeData(db *sql.DB) (UserTypeForm, error) {
if err := db.QueryRow(`
SELECT COUNT(*) FROM auth
WHERE id NOT IN (SELECT user_id FROM subscription WHERE total_month > 0)
AND id IN (SELECT user_id FROM quota WHERE quota + used < ?)
AND id IN (SELECT user_id FROM quota WHERE quota + used <= ?)
`, initialQuota).Scan(&form.Normal); err != nil {
return form, err
}
Expand Down

0 comments on commit 196f150

Please sign in to comment.