Skip to content

Commit cc9b1ad

Browse files
authored
Bugfix/author repo url (#159)
* fixed wrong repo url for author-management service * removed second usage of repositorurl and removed unused property
1 parent 6204256 commit cc9b1ad

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

src/app/candidate-management/candidate-management-detail/candidate-management-detail.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export class CandidateManagementDetailComponent implements OnInit, AfterViewInit
157157
confirmDialog.afterClosed().subscribe(result => {
158158
if (result) {
159159
this.candidateManagementService.deleteCandidate(this.candidate).subscribe(res => {
160-
const url = `${environment.repositoryUrl}/patternLanguages/${this.candidate.patternLanguageId}/patterns`;
160+
const url = `${environment.API_URL}/patternLanguages/${this.candidate.patternLanguageId}/patterns`;
161161
this.patternService.savePattern(url, this.candidate).subscribe(result => {
162162
this.router.navigate([globals.pathConstants.patternLanguages, this.candidate.patternLanguageId]);
163163
})

src/app/core/author-management/_services/author-management.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class AuthorManagementService {
2020
private http: HttpClient,
2121
private toasterService: ToasterService,
2222
) {
23-
this.repoEndpoint = environment.repositoryUrl;
23+
this.repoEndpoint = environment.API_URL;
2424
this.serviceEndpoint = '/authors';
2525
}
2626

src/environments/environment.prod.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export const environment = {
2222
API_URL: window['env'] && window['env']['PATTERN_ATLAS_API_HOST_NAME'] && window['env']['PATTERN_ATLAS_API_PORT']
2323
? `${urlScheme}://${window['env']['PATTERN_ATLAS_API_HOST_NAME']}:${window['env']['PATTERN_ATLAS_API_PORT']}/patternatlas`
2424
: 'http://localhost:1977/patternatlas',
25-
repositoryUrl: 'http://localhost:1977/patternatlas',
2625
authorizeUrl: `${authRealm}/protocol/openid-connect/auth?`,
2726
tokenUrl: `${authRealm}/protocol/openid-connect/token`,
2827
tokenRevokeUrl: `${authRealm}/protocol/openid-connect/revoke`,

src/environments/environment.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export const environment = {
2828
window['env'] && window['env']['LATEX_RENDERER_HOST_NAME'] && window['env']['LATEX_RENDERER_PORT']
2929
? `${urlScheme}://${window['env']['LATEX_RENDERER_HOST_NAME']}:${window['env']['LATEX_RENDERER_PORT']}`
3030
: 'http://localhost:5030',
31-
repositoryUrl: 'http://localhost:1977/patternatlas',
3231
authorizeUrl: `${authRealm}/protocol/openid-connect/auth?`,
3332
tokenUrl: `${authRealm}/protocol/openid-connect/token`,
3433
tokenRevokeUrl: `${authRealm}/protocol/openid-connect/revoke`,

0 commit comments

Comments
 (0)