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

Change method naming for Likes #3

Open
ArkeologeN opened this issue Dec 22, 2013 · 0 comments
Open

Change method naming for Likes #3

ArkeologeN opened this issue Dec 22, 2013 · 0 comments
Assignees

Comments

@ArkeologeN
Copy link
Owner

Current Like story syntax is something like:

angel.likes.create({
    likable_type: '',
    likable_id: ''
}, function(err, body) {
    if ( err )
        return console.log(err);

    console.log(body); // Something with messages here.
});

We need to change it as:

angel.likes.like({
    likable_type: '',
    likable_id: ''
}, function(err, body) {
    if ( err )
        return console.log(err);

    console.log(body); // Something with messages here.
});

In the same way, change the Delete / Unlike process as defined:

angel.likes.trash('like_id', function(err, body) {
    if ( err )
        return console.log(err);

    console.log(body); // Something with messages here.
});

TO

angel.likes.unlike('like_id', function(err, body) {
    if ( err )
        return console.log(err);

    console.log(body); // Something with messages here.
});
@ghost ghost assigned ArkeologeN Dec 22, 2013
mateusfreira added a commit to mateusfreira/angel.co-node that referenced this issue Oct 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant