Skip to content

Problems on prototype methodsΒ #1

@diegobent

Description

@diegobent

Hi!

I've found a problem with prototype methods related to models relations.

For example: "Man" hasMany "Child" cause creation of method Man.prototype.__get__childs called by the remote method //xxx/api/men/[MAN_ID]/childs

During bootstrap phase (at https://github.com/snowyu/loopback-component-remote-ctx.js/blob/master/src/inject-remote-ctx.coffee#L73) i see that the method is injected but in the "inject" function (https://github.com/snowyu/loopback-component-remote-ctx.js/blob/master/src/inject-remote-ctx.coffee#L40) ctx.method.accepts object does not have the new accept injected!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions