get_vote_of_citizen_by_proposal
@mount("votes.get_vote_of_citizen_by_proposal")
query get_vote_of_citizen_by_proposal(account_id: byte_array, prop_id: rowid): mapped_vote?
Retrieves the vote cast by a specific citizen for a given proposal. The query is used to determine the voting record of a citizen for a specific proposal.
Return
A mapped vote object if the citizen has cast a vote for the proposal, or null
if no vote is found.
Parameters
account_id
The account ID of the citizen whose vote is being retrieved.
prop_id
The ID of the proposal for which the vote is being retrieved.