kalisio / krawler

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

callFeathersServiceMethod overwrite null id #249

Closed cnouguier closed 1 year ago

cnouguier commented 1 year ago

Steps to reproduce

Declare a hook such as the code above:

callFeathersServiceMethod: {
   service: `/api/${eventId}/measures`,
    method: 'patch',
    id: null
}

Expected behavior

The id should remain nill

Actual behavior

The id is assigned the item.id, see: https://github.com/kalisio/krawler/blob/master/lib/hooks/hooks.feathers.js#L99

System configuration

Krawler 2.4