Skip to content

Commit

Permalink
Bugfix/author repo url (#159)
Browse files Browse the repository at this point in the history
* fixed wrong repo url for author-management service

* removed second usage of repositorurl and removed unused property
  • Loading branch information
mhinkie authored Nov 11, 2022
1 parent 6204256 commit cc9b1ad
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export class CandidateManagementDetailComponent implements OnInit, AfterViewInit
confirmDialog.afterClosed().subscribe(result => {
if (result) {
this.candidateManagementService.deleteCandidate(this.candidate).subscribe(res => {
const url = `${environment.repositoryUrl}/patternLanguages/${this.candidate.patternLanguageId}/patterns`;
const url = `${environment.API_URL}/patternLanguages/${this.candidate.patternLanguageId}/patterns`;
this.patternService.savePattern(url, this.candidate).subscribe(result => {
this.router.navigate([globals.pathConstants.patternLanguages, this.candidate.patternLanguageId]);
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class AuthorManagementService {
private http: HttpClient,
private toasterService: ToasterService,
) {
this.repoEndpoint = environment.repositoryUrl;
this.repoEndpoint = environment.API_URL;
this.serviceEndpoint = '/authors';
}

Expand Down
1 change: 0 additions & 1 deletion src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export const environment = {
API_URL: window['env'] && window['env']['PATTERN_ATLAS_API_HOST_NAME'] && window['env']['PATTERN_ATLAS_API_PORT']
? `${urlScheme}://${window['env']['PATTERN_ATLAS_API_HOST_NAME']}:${window['env']['PATTERN_ATLAS_API_PORT']}/patternatlas`
: 'http://localhost:1977/patternatlas',
repositoryUrl: 'http://localhost:1977/patternatlas',
authorizeUrl: `${authRealm}/protocol/openid-connect/auth?`,
tokenUrl: `${authRealm}/protocol/openid-connect/token`,
tokenRevokeUrl: `${authRealm}/protocol/openid-connect/revoke`,
Expand Down
1 change: 0 additions & 1 deletion src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export const environment = {
window['env'] && window['env']['LATEX_RENDERER_HOST_NAME'] && window['env']['LATEX_RENDERER_PORT']
? `${urlScheme}://${window['env']['LATEX_RENDERER_HOST_NAME']}:${window['env']['LATEX_RENDERER_PORT']}`
: 'http://localhost:5030',
repositoryUrl: 'http://localhost:1977/patternatlas',
authorizeUrl: `${authRealm}/protocol/openid-connect/auth?`,
tokenUrl: `${authRealm}/protocol/openid-connect/token`,
tokenRevokeUrl: `${authRealm}/protocol/openid-connect/revoke`,
Expand Down

0 comments on commit cc9b1ad

Please sign in to comment.