We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36805cc commit 2c31d42Copy full SHA for 2c31d42
2 files changed
packages/kitsu/src/index.js
@@ -248,8 +248,9 @@ export default class Kitsu {
248
camelCaseTypes: this.camel,
249
pluralTypes: this.plural
250
})
251
+ const fullURL = body?.id ? `${url}/${body.id}` : url
252
const { data } = await this.axios.patch(
- `${url}/${body.id}`,
253
+ fullURL,
254
serialData,
255
{ headers: Object.assign(this.headers, headers) }
256
)
packages/kitsu/src/patch.spec.js
@@ -53,6 +53,7 @@ describe('kitsu', () => {
53
done()
54
55
56
+ it('sends bulk data in request', async done => {
57
it('throws an error if missing a JSON object body', async () => {
58
expect.assertions(1)
59
const api = new Kitsu()
0 commit comments