kalisio / krawler

A minimalist (geospatial) ETL
https://kalisio.github.io/krawler/
MIT License
54 stars 13 forks source link

callFeathersServiceMethod hook does not work for patch/update with data as item payload #250

Closed claustres closed 1 year ago

claustres commented 1 year ago

Steps to reproduce

Use the following options:

{
    service: '/geojson',
    method: 'patch',
    id: null,
    query: {}
}

With hook data like this: { properties: 'value2' }.

Expected behavior

All objects matching query should be patched.

Actual behavior

No objects are patched. The data sent to Feathers is like [ [ { properties: 'value2' } ] ], due to the fact we create chunks in this case, which should be restricted to a create operation.

System configuration

Tell us about the applicable parts of your setup.

Module versions (especially the part that's not working): 2.4

NodeJS version: 16

Operating System: Windows