You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.
i just want to get a rank for current user
I'am did current_user.rank _for(:total_points)
then I get this error when i use postgresql while its work whitout any issue on sqlite3
PG::WrongObjectType: ERROR: count(*) must be used to call a parameterless aggregate function
LINE 1: SELECT COUNT() FROM "users" LEFT JOIN rs_reputations ON user...
^
: SELECT COUNT() FROM "users" LEFT JOIN rs_reputations ON users.id = rs_reputations.target_id AND rs_reputations.target_type = 'User' AND rs_reputations.reputation_name = 'total_points' AND rs_reputations.active = 't' WHERE (rs_reputations.value > 0.0)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Welcome
i just want to get a rank for current user
I'am did
current_user.rank _for(:total_points)
then I get this error when i use postgresql while its work whitout any issue on sqlite3
The text was updated successfully, but these errors were encountered: