Skip to content

Commit

Permalink
Also update requests to be proper type
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-hoyle committed Mar 19, 2024
1 parent d204b4a commit c8e7587
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/clients/core/organizationmemberships.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class OrganizationMemberships extends Client {
* const newMembership = await client.organizationmemberships.create({ user_id: 123, organization_id: 456 });
*/
async create(organizationMembership) {
return this.post(['organization_memberships'], organizationMembership);
return this.post(['organization_memberships'], { organization_membership: organizationMembership });

Check failure on line 98 in src/clients/core/organizationmemberships.js

View workflow job for this annotation

GitHub Actions / build-and-deploy

Replace `·organization_membership:·organizationMembership` with `⏎······organization_membership:·organizationMembership,⏎···`
}

/**
Expand All @@ -112,7 +112,7 @@ class OrganizationMemberships extends Client {
async createByUser(userID, organizationMembership) {
return this.post(

Check failure on line 113 in src/clients/core/organizationmemberships.js

View workflow job for this annotation

GitHub Actions / build-and-deploy

Replace `⏎······['users',·userID,·'organization_memberships'],⏎······{·organization_membership:·organizationMembership·}` with `['users',·userID,·'organization_memberships'],·{⏎······organization_membership:·organizationMembership`
['users', userID, 'organization_memberships'],
organizationMembership,
{ organization_membership: organizationMembership },
);

Check failure on line 116 in src/clients/core/organizationmemberships.js

View workflow job for this annotation

GitHub Actions / build-and-deploy

Insert `}`
}

Expand All @@ -136,7 +136,7 @@ class OrganizationMemberships extends Client {
async createMany(organizationMemberships) {
return this.post(

Check failure on line 137 in src/clients/core/organizationmemberships.js

View workflow job for this annotation

GitHub Actions / build-and-deploy

Replace `⏎······['organization_memberships',·'create_many'],` with `['organization_memberships',·'create_many'],·{`
['organization_memberships', 'create_many'],
organizationMemberships,
{ organization_memberships: organizationMemberships},

Check failure on line 139 in src/clients/core/organizationmemberships.js

View workflow job for this annotation

GitHub Actions / build-and-deploy

Replace `·{·organization_memberships:·organizationMemberships}` with `·organization_memberships:·organizationMemberships`
);

Check failure on line 140 in src/clients/core/organizationmemberships.js

View workflow job for this annotation

GitHub Actions / build-and-deploy

Insert `}`
}

Expand Down

0 comments on commit c8e7587

Please sign in to comment.