Skip to content

Commit

Permalink
Run prettier:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rm3l committed Jun 17, 2024
1 parent f447fe2 commit 0909e98
Show file tree
Hide file tree
Showing 4 changed files with 273 additions and 270 deletions.
20 changes: 11 additions & 9 deletions plugins/bulk-import-backend/src/helpers/catalogInfoGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,19 @@ ${jsYaml.dump(generatedEntity.entity)}`,

async listCatalogUrlLocations(): Promise<string[]> {
const response = await fetch(
`${await this.discovery.getBaseUrl('catalog')}/locations`,
{
headers: {
'Accept': 'application/json',
},
method: 'GET',
`${await this.discovery.getBaseUrl('catalog')}/locations`,
{
headers: {
Accept: 'application/json',
},
method: 'GET',
},
);
const locations = (await response.json()) as {data: {id: string, target: string, type: string}}[];
const locations = (await response.json()) as {
data: { id: string; target: string; type: string };
}[];
return locations
.filter(location => location.data.type === 'url')
.map(location => location.data.target);
.filter(location => location.data.type === 'url')
.map(location => location.data.target);
}
}
1 change: 0 additions & 1 deletion plugins/bulk-import-backend/src/schema/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ components:
items:
type: string


ApprovalTool:
type: string
enum:
Expand Down
Loading

0 comments on commit 0909e98

Please sign in to comment.