Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_voted() should return how the user voted #124

Open
ericbiewener opened this issue Jul 6, 2015 · 1 comment
Open

get_voted() should return how the user voted #124

ericbiewener opened this issue Jul 6, 2015 · 1 comment

Comments

@ericbiewener
Copy link

get_voted() simply returns an array of objects that the user has voted on, but does not say how the user has voted. To get that info, I have to use both get_up_voted() and get_down_voted(). This results in an additional query. I think get_voted() should include how the user voted.

@danielRomero
Copy link

It sounds good.
Maybe a new method, something like get_all_voted() that returns a Hash or an Struct object like:

{
  upvoted: [Object, Object, Object],
  downvoted: [Object, Object, Object]
}

What do you think about?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants