SQL functions find_comments_* now return VotesAggregates
create Votable Interface remove usless "resourceTarget" argument for SQL function "count_vote"
This commit is contained in:
@@ -87,7 +87,7 @@ begin
|
||||
exception when check_violation then
|
||||
end;
|
||||
|
||||
select count_vote('article', '933b6a1b-50c9-42b6-989f-c02a57814ef9') into votes;
|
||||
select count_vote('933b6a1b-50c9-42b6-989f-c02a57814ef9') into votes;
|
||||
assert ((votes->>'up')::int = 0), 'vote.up must be 0';
|
||||
|
||||
-- Test "find_votes_by_citizen"
|
||||
|
||||
Reference in New Issue
Block a user