Skip to content

Commit e2031b6

Browse files
authored
Fix feature flags endpoint URL (#1335)
1 parent e6e9d97 commit e2031b6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/organizations/organizations.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ describe('Organizations', () => {
461461
});
462462

463463
expect(fetchURL()).toContain(
464-
'/organizations/org_01EHT88Z8J8795GZNQ4ZP1J81T/feature_flags',
464+
'/organizations/org_01EHT88Z8J8795GZNQ4ZP1J81T/feature-flags',
465465
);
466466

467467
expect(object).toEqual('list');
@@ -514,7 +514,7 @@ describe('Organizations', () => {
514514
});
515515

516516
expect(fetchURL()).toContain(
517-
'/organizations/org_01EHT88Z8J8795GZNQ4ZP1J81T/feature_flags',
517+
'/organizations/org_01EHT88Z8J8795GZNQ4ZP1J81T/feature-flags',
518518
);
519519

520520
expect(data).toHaveLength(3);
@@ -537,7 +537,7 @@ describe('Organizations', () => {
537537
});
538538

539539
expect(fetchURL()).toContain(
540-
'/organizations/org_01EHT88Z8J8795GZNQ4ZP1J81T/feature_flags',
540+
'/organizations/org_01EHT88Z8J8795GZNQ4ZP1J81T/feature-flags',
541541
);
542542

543543
expect(data).toHaveLength(3);
@@ -560,7 +560,7 @@ describe('Organizations', () => {
560560
});
561561

562562
expect(fetchURL()).toContain(
563-
'/organizations/org_01EHT88Z8J8795GZNQ4ZP1J81T/feature_flags',
563+
'/organizations/org_01EHT88Z8J8795GZNQ4ZP1J81T/feature-flags',
564564
);
565565

566566
expect(data).toHaveLength(3);

src/organizations/organizations.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,14 @@ export class Organizations {
119119
return new AutoPaginatable(
120120
await fetchAndDeserialize<FeatureFlagResponse, FeatureFlag>(
121121
this.workos,
122-
`/organizations/${organizationId}/feature_flags`,
122+
`/organizations/${organizationId}/feature-flags`,
123123
deserializeFeatureFlag,
124124
paginationOptions,
125125
),
126126
(params) =>
127127
fetchAndDeserialize<FeatureFlagResponse, FeatureFlag>(
128128
this.workos,
129-
`/organizations/${organizationId}/feature_flags`,
129+
`/organizations/${organizationId}/feature-flags`,
130130
deserializeFeatureFlag,
131131
params,
132132
),

0 commit comments

Comments
 (0)