fix interface comments

This commit is contained in:
andreas.mantas 2022-08-24 18:04:36 +00:00
parent 013155d5d8
commit 27b68c0d09
1 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@ export class RepositoryService {
addInterface(datatype: string, repoId: string, registeredBy: string, comment: string, newInterface: RepositoryInterface): Observable<RepositoryInterface> {
let url;
comment = newInterface.comments; // temporary fix. TODO: test with backend
if (comment == null || comment === '') {
url = `${this.apiUrl}addInterface?datatype=${datatype}&repoId=${repoId}&registeredBy=${registeredBy}`;
} else {
@ -47,7 +48,7 @@ export class RepositoryService {
updateInterface(repoId: string, registeredBy: string, comment: string, interfaceInfo: RepositoryInterface): Observable<RepositoryInterface> {
let url;
console.log(comment);
comment = interfaceInfo.comments; // temporary fix. TODO: test with backend
if (comment == null || comment === '') {
url = `${this.apiUrl}updateRepositoryInterface?repoId=${repoId}&registeredBy=${registeredBy}`;
} else {