Skip to content

Bones augment method is not working correctly #23

Open

Description

@Morriz

Taking a look at the example code, I noticed a flaw in the augment method.

If I debug the client model's 'sync' method, I get the arguments in the correct order:

method, model, options

If I augment the 'sync' method for the server version, I get an extra function as the first parameter (which was caused by '_.wrap'), rearranging the method signature, and leading to unexpected results:

func, method, model, options

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions