diff --git a/src/client/app/shared/twigs.http.service.ts b/src/client/app/shared/twigs.http.service.ts index 09aa25b..27ad75e 100644 --- a/src/client/app/shared/twigs.http.service.ts +++ b/src/client/app/shared/twigs.http.service.ts @@ -122,22 +122,11 @@ export class TwigsHttpService implements TwigsService { id: string, name: string, description: string, - users: UserPermission[], ): Observable { const params = { 'id': id, 'name': name, 'description': description, -<<<<<<< HEAD - 'users': users.map(userPermission => { - return { - user: userPermission.user, - permission: Permission[userPermission.permission] - }; - }) -======= - 'users': users ->>>>>>> 4488aff (Finish implementing /api/budget routes) }; return this.http.post(this.apiUrl + '/budgets', params, this.options) .pipe(map(budget => { @@ -154,12 +143,6 @@ export class TwigsHttpService implements TwigsService { const params = { 'name': budget.name, 'description': budget.description, - 'users': budget.users.map(userPermission => { - return { - user: userPermission.user, - permission: Permission[userPermission.permission] - }; - }) }; return this.http.put(`${this.apiUrl}/budgets/${id}`, params, this.options) .pipe(map(budget => {