moonlight-labs / aor-jsonapi-client

JSON-API compliant restClient for Admin-On-Rest
15 stars 21 forks source link

Could not update records #2

Closed wesley6j closed 7 years ago

wesley6j commented 7 years ago

Object.keys(params.data.attributes).forEach(key => attrs[key] = params.data[key]); should be: Object.keys(params.data).forEach(key => attrs[key] = params.data[key]); ?

maxschridde1494 commented 7 years ago

Yes, you are correct -- thanks for the catch. aor-jsonapi-client@0.1.16 has the fix.