Skip to content

Commit

Permalink
fix(api-core): use get instead of query for space name
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob McGuinness committed Jan 3, 2018
1 parent 91b495e commit 84dd26a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/api-core/src/resources/spaces.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ export default class AvSpaces extends AvApi {
}

getSpaceName(spaceId) {
return this.query({
params: {
id: spaceId,
},
}).then(response => response.data.name);
return this.get(spaceId).then(response => response.data.name);
}
}

0 comments on commit 84dd26a

Please sign in to comment.