Skip to content

Commit

Permalink
🤖 GITHUB ACTIONS format_prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
amontenegro committed Mar 11, 2024
1 parent 6488dde commit e5114ba
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
36 changes: 18 additions & 18 deletions src/app/core/record-affiliations/record-affiliations.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,24 +202,24 @@ export class RecordAffiliationService {
}

getOrganization(org: string): Observable<Organization[]> {
if(org.length > 2) {
return this._http
.get<Organization[]>(
environment.API_WEB +
'affiliations/disambiguated/name/' +
org +
'?limit=100',
{
headers: this.headers,
}
)
.pipe(
retry(3),
catchError((error) => this._errorHandler.handleError(error))
)
} else {
return of([])
}
if (org.length > 2) {
return this._http
.get<Organization[]>(
environment.API_WEB +
'affiliations/disambiguated/name/' +
org +
'?limit=100',
{
headers: this.headers,
}
)
.pipe(
retry(3),
catchError((error) => this._errorHandler.handleError(error))
)
} else {
return of([])
}
}

getOrganizationDisambiguated(
Expand Down
36 changes: 18 additions & 18 deletions src/app/core/record-fundings/record-fundings.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,24 +174,24 @@ export class RecordFundingsService {
}

getOrganization(org: string): Observable<Organization[]> {
if(org.length > 2) {
return this._http
.get<Organization[]>(
environment.API_WEB +
'fundings/disambiguated/name/' +
org +
'?limit=100&funders-only=true',
{
headers: this.headers,
}
)
.pipe(
retry(3),
catchError((error) => this._errorHandler.handleError(error))
)
} else {
return of([])
}
if (org.length > 2) {
return this._http
.get<Organization[]>(
environment.API_WEB +
'fundings/disambiguated/name/' +
org +
'?limit=100&funders-only=true',
{
headers: this.headers,
}
)
.pipe(
retry(3),
catchError((error) => this._errorHandler.handleError(error))
)
} else {
return of([])
}
}

loadFundingImportWizardList(): Observable<RecordImportWizard[]> {
Expand Down

0 comments on commit e5114ba

Please sign in to comment.