Skip to content

Commit

Permalink
fix: incorrect content path
Browse files Browse the repository at this point in the history
There is currently a PR for fixing these content paths. I created a new
one for getManyComplex that mirrors getMany, but having these separate
is probably a good idea if things change.
  • Loading branch information
walter-manger authored Mar 15, 2017
1 parent b018667 commit 6b45852
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function forteApi(credentials, scope, options) {
},
getManyComplex: function getManyComplex(type, filter) {
validateArgs('content_getManyComplex', arguments);
return client.post(ApiPaths.content.getMany(scope, type), {
return client.post(ApiPaths.content.getManyComplex(scope, type), {
data: filter,
});
},
Expand Down
3 changes: 3 additions & 0 deletions src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ export const ApiPaths = {
aggregate: function aggregate(scope, type) {
return '/forte/organizations/' + scope.trunk + '/' + scope.branch + '/content/documents/' + type + '/aggregate/';
},
getManyComplex: function getManyComplex(scope, type) {
return '/forte/organizations/' + scope.trunk + '/' + scope.branch + '/content/documents/' + type + '/';
},
getMany: function getMany(scope, type) {
return '/forte/' + scope.trunk + '/' + scope.branch + '/content/' + type + '/';
},
Expand Down

0 comments on commit 6b45852

Please sign in to comment.