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

Sync Resource #68

Open
sszenchenko opened this issue Jan 24, 2018 · 1 comment
Open

Sync Resource #68

sszenchenko opened this issue Jan 24, 2018 · 1 comment

Comments

@sszenchenko
Copy link

Hi guys,

I'm trying to update the resource using the below code:

`const JsonapiClient = require("@holidayextras/jsonapi-client");
const client = new JsonapiClient("http://localhost:16006");

client.get('plans', 'test_plan', {}, function (err, plan) {
if (err) return console.error(err);

plan.set('name', 'Test plan 2');
plan.sync();
});`

But the update handler is not invoked on my server. Other handlers (create, delete, find, etc.) work as expected.

@paparomeo
Copy link

Sorry for the late reply @sszenchenko. I'll try to reproduce this soon and will come back to you.

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