Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate of options argument when using injectOptionsFromRemoteContext #331

Closed
2 of 6 tasks
tobibrandenberg opened this issue Jan 27, 2017 · 1 comment
Closed
2 of 6 tasks

Comments

@tobibrandenberg
Copy link

What type of issue are you creating?

  • Bug
  • Enhancement
  • Question

What version of this module are you using?

  • 2.0.10 (Stable)
  • 2.1.0-rc.n (2.1 Release Candidate n)
  • Other

Write other if any:

Please add a description for your issue:

When I use

"options": {
    "validateUpsert": true,
    "injectOptionsFromRemoteContext": true
  }

in my model json file, the builder generates the relation query functions with duplicate of "options" argument

public getOwner(id: any, options: any = {}, refresh: any = {}, options: any = {}): Observable<any> {
    let _method: string = "GET";
    let _url: string = LoopBackConfig.getPath() + "/" + LoopBackConfig.getApiVersion() +
    "/Groups/:id/owner";
    let _routeParams: any = {
      id: id
    };
    let _postBody: any = {};
    let _urlParams: any = {};
    if (refresh) _urlParams.refresh = refresh;
    let result = this.request(_method, _url, _routeParams, _urlParams, _postBody);
    return result;
  }
@jonathan-casarrubias
Copy link
Collaborator

Hi @tobibrandenberg this is a known issue and is already reported in here #310

I will close this issue in favor of 310

Cheers
Jon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants