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 {
239
239
try {
240
240
// @todo switch on cookie, "X-Session-Token" or client_credentials
241
241
const fetchResponse = await fetch ( url , {
242
- credentials : 'include' , // @todo only required for cookie based auth,
242
+ credentials : 'include' ,
243
243
headers : headers ,
244
244
} ) ;
245
245
let json = await fetchResponse . json ( ) ;
Original file line number Diff line number Diff line change @@ -1579,15 +1579,13 @@ class BaseService extends RequestBuilder {
1579
1579
} ;
1580
1580
}
1581
1581
async create ( model , params ) {
1582
- if ( params ) {
1583
- }
1582
+ if ( params ) { }
1584
1583
const jsonApiSerializer = new JsonApiSerializer ( this . hydrator . getModelMap ( ) ) ;
1585
1584
const payload = jsonApiSerializer . buildCreatePayload ( model ) ;
1586
1585
return await this . client . makePostRequest ( this . endpoint , payload ) ;
1587
1586
}
1588
1587
async update ( id , model , params ) {
1589
- if ( params ) {
1590
- }
1588
+ if ( params ) { }
1591
1589
const jsonApiSerializer = new JsonApiSerializer ( this . hydrator . getModelMap ( ) ) ;
1592
1590
const payload = jsonApiSerializer . buildUpdatePayload ( model ) ;
1593
1591
return await this . client . makePatchRequest ( `${ this . endpoint } /${ id } ` , payload ) ;
@@ -2283,9 +2281,6 @@ class ClientConfig {
2283
2281
}
2284
2282
// src/models/Organisation.ts
2285
2283
class Organisation extends BaseModel {
2286
- constructor ( ) {
2287
- super ( ...arguments ) ;
2288
- }
2289
2284
type = "organisations" ;
2290
2285
static relationships = [ ] ;
2291
2286
}
You can’t perform that action at this time.
0 commit comments