fix interface comments
This commit is contained in:
parent
013155d5d8
commit
27b68c0d09
|
@ -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}®isteredBy=${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}®isteredBy=${registeredBy}`;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue