File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ impl GovernanceRepoTrait for GovernanceRepo {
135
135
136
136
conn. interact ( move |conn| {
137
137
governance_votes:: table
138
- . filter ( governance_votes:: dsl:: id . eq ( proposal_id) )
138
+ . filter ( governance_votes:: dsl:: proposal_id . eq ( proposal_id) )
139
139
. select ( GovernanceProposalVoteDb :: as_select ( ) )
140
140
. paginate ( page)
141
141
. load_and_count_pages ( conn)
@@ -154,7 +154,7 @@ impl GovernanceRepoTrait for GovernanceRepo {
154
154
155
155
conn. interact ( move |conn| {
156
156
governance_votes:: table
157
- . filter ( governance_votes:: dsl:: id . eq ( proposal_id) . and (
157
+ . filter ( governance_votes:: dsl:: proposal_id . eq ( proposal_id) . and (
158
158
governance_votes:: dsl:: voter_address. eq ( voter_address) ,
159
159
) )
160
160
. select ( GovernanceProposalVoteDb :: as_select ( ) )
You can’t perform that action at this time.
0 commit comments