From 46083d4e44fa82db114a728fcb50c0b2c9606e84 Mon Sep 17 00:00:00 2001 From: yarik Date: Fri, 3 Feb 2017 18:49:01 +0200 Subject: [PATCH] Add/update completed --- src/app/pages/statements/components/busStop2/busStop2.service.ts | 4 ++-- src/app/pages/statements/components/busStop2/busStop2.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/pages/statements/components/busStop2/busStop2.service.ts b/src/app/pages/statements/components/busStop2/busStop2.service.ts index e538a43..43be237 100644 --- a/src/app/pages/statements/components/busStop2/busStop2.service.ts +++ b/src/app/pages/statements/components/busStop2/busStop2.service.ts @@ -33,13 +33,13 @@ export class BusStop2Service { .catch(this.handleError); } update(id: number, data: string): Promise { - return this.http.post(this.url + '/update?id=' + id + '&data=' + data, {}, { headers: this.headers }) + return this.http.post(this.url + '/update?id=' + id, data, { headers: this.headers }) .toPromise() .then(response => response.json()) .catch(this.handleError); } create(data: string): Promise { - return this.http.post(this.url + '/create?data=' + data, {}, { headers: this.headers }) + return this.http.post(this.url + '/create', data, { headers: this.headers }) .toPromise() .then(response => response.json()) .catch(this.handleError); diff --git a/src/app/pages/statements/components/busStop2/busStop2.ts b/src/app/pages/statements/components/busStop2/busStop2.ts index e8f41e4..a67257f 100644 --- a/src/app/pages/statements/components/busStop2/busStop2.ts +++ b/src/app/pages/statements/components/busStop2/busStop2.ts @@ -5,7 +5,7 @@ export class busStop2 { settlementId: number; locationLeft: string; locationRight: string; - surfaceTypeId: string; + surfaceTypeId: number; areaStopAvailability: string; areaLandAvailability: string; pocketAvailability: string; -- libgit2 0.21.4