mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
FIX: counting invites didn't work
PostgreSQL reported the following error: "for SELECT DISTINCT, ORDER BY expressions must appear in select list"
This commit is contained in:
@ -402,6 +402,8 @@ describe Invite do
|
||||
|
||||
expect(invites.length).to eq(1)
|
||||
expect(invites.first).to eq pending_invite
|
||||
|
||||
expect(Invite.find_pending_invites_count(inviter)).to eq(1)
|
||||
end
|
||||
end
|
||||
|
||||
@ -426,6 +428,8 @@ describe Invite do
|
||||
|
||||
expect(invites.length).to eq(1)
|
||||
expect(invites.first).to eq redeemed_invite
|
||||
|
||||
expect(Invite.find_redeemed_invites_count(inviter)).to eq(1)
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user