Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
fix(spaces): Corrected URL used to update space instances.
Browse files Browse the repository at this point in the history
URL path should contain space Id and not name.
  • Loading branch information
VineetReynolds authored and joshuawilson committed Mar 7, 2017
1 parent 971f052 commit f806f0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/spaces/space.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class SpaceService {
}

update(space: Space): Observable<Space> {
let url = `${this.spacesUrl}/${space.attributes.name}`;
let url = `${this.spacesUrl}/${space.id}`;
let payload = JSON.stringify({data: space});
return this.http
.patch(url, payload, {headers: this.headers})
Expand Down

0 comments on commit f806f0e

Please sign in to comment.