File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ export class Client {
239239 try {
240240 // @todo switch on cookie, "X-Session-Token" or client_credentials
241241 const fetchResponse = await fetch ( url , {
242- credentials : 'include' , // @todo only required for cookie based auth,
242+ credentials : 'include' ,
243243 headers : headers ,
244244 } ) ;
245245 let json = await fetchResponse . json ( ) ;
Original file line number Diff line number Diff line change @@ -1579,15 +1579,13 @@ class BaseService extends RequestBuilder {
15791579 } ;
15801580 }
15811581 async create ( model , params ) {
1582- if ( params ) {
1583- }
1582+ if ( params ) { }
15841583 const jsonApiSerializer = new JsonApiSerializer ( this . hydrator . getModelMap ( ) ) ;
15851584 const payload = jsonApiSerializer . buildCreatePayload ( model ) ;
15861585 return await this . client . makePostRequest ( this . endpoint , payload ) ;
15871586 }
15881587 async update ( id , model , params ) {
1589- if ( params ) {
1590- }
1588+ if ( params ) { }
15911589 const jsonApiSerializer = new JsonApiSerializer ( this . hydrator . getModelMap ( ) ) ;
15921590 const payload = jsonApiSerializer . buildUpdatePayload ( model ) ;
15931591 return await this . client . makePatchRequest ( `${ this . endpoint } /${ id } ` , payload ) ;
@@ -2283,9 +2281,6 @@ class ClientConfig {
22832281}
22842282// src/models/Organisation.ts
22852283class Organisation extends BaseModel {
2286- constructor ( ) {
2287- super ( ...arguments ) ;
2288- }
22892284 type = "organisations" ;
22902285 static relationships = [ ] ;
22912286}
You can’t perform that action at this time.
0 commit comments