Skip to content

Commit de5ba37

Browse files
authored
Artifact type query v2 (#574)
* use v2 params for artifact type and region
1 parent 68271f2 commit de5ba37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/packages/api_v1_sdk/apiv1_artifact_service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class Apiv1ArtifactService implements ArtifactService {
2424
queries.push(`page=${page}`);
2525
const searchParams = [];
2626
if (!!type) {
27-
searchParams.push(`artifacts.type=${type}`);
27+
queries.push(`type=${type}`)
2828
}
2929
if (startDate != null) {
3030
searchParams.push(`start=${startDate.toISOString().split('T')[0]}`);
@@ -33,7 +33,7 @@ export class Apiv1ArtifactService implements ArtifactService {
3333
searchParams.push(`start=${endDate.toISOString().split('T')[0]}`);
3434
}
3535
if (regions.length > 0) {
36-
searchParams.push(`engagement_region=${regions.join(',')}`);
36+
regions.forEach(region => queries.push(`region=${region}`));
3737
}
3838
if (searchParams.length > 0) {
3939
queries.push(`search=${encodeURIComponent(searchParams.join('&'))}`);

0 commit comments

Comments
 (0)