File tree 3 files changed +7
-6
lines changed
3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -453,7 +453,11 @@ export class API extends ParentAPI {
453
453
[ 'group_ids' , request . groupIds ] ,
454
454
[ 'name' , request . name ] ,
455
455
[ 'order_by' , request . orderBy ] ,
456
- [ 'organization_id' , request . organizationId ] ,
456
+ [
457
+ 'organization_id' ,
458
+ request . organizationId ??
459
+ this . client . settings . defaultOrganizationId ,
460
+ ] ,
457
461
[ 'page' , request . page ] ,
458
462
[
459
463
'page_size' ,
Original file line number Diff line number Diff line change @@ -98,10 +98,7 @@ export const marshalBookIPRequest = (
98
98
address : request . address ,
99
99
is_ipv6 : request . isIpv6 ,
100
100
project_id : request . projectId ?? defaults . defaultProjectId ,
101
- source :
102
- request . source !== undefined
103
- ? marshalSource ( request . source , defaults )
104
- : undefined ,
101
+ source : marshalSource ( request . source , defaults ) ,
105
102
tags : request . tags ,
106
103
} )
107
104
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ export type BookIPRequest = {
100
100
*/
101
101
projectId ?: string
102
102
/** Source in which to book the IP. Not all sources are available for booking. */
103
- source ? : Source
103
+ source : Source
104
104
/** Request an IPv6 instead of an IPv4. */
105
105
isIpv6 : boolean
106
106
/**
You can’t perform that action at this time.
0 commit comments