8000 Allow to send no params through socket calls · Issue #88 · feathersjs/feathers · GitHub
[go: up one dir, main page]

Skip to content

Allow to send no params through socket calls #88

@daffl

Description

@daffl

As reported in daffl/rubberduck#3 when not sending an empty parameters object you will get an error because the parameter extension will try to use the function (https://github.com/feathersjs/feathers/blob/master/lib/providers/socket/commons.js#L21). We should check if args[position] is a function and if so, make the query an empty object and create a new call array.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0