You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, this crashing with the following error:
TypeError: def.rest.replace is not a function
at fixIDInRestPath (@moleculer\database\src\schema.js:32:23)
at Service.merged (@moleculer\database\src\index.js:272:6)
at node_modules\moleculer\src\service.js:87:35
at Array.forEach (<anonymous>)
at Service.parseServiceSchema (moleculer\src\service.js:87:18)
at new Service (moleculer\src\service.js:64:20)
at ServiceBroker.createService (node_modules\moleculer\src\service-broker.js:840:14)
at ServiceBroker.loadService (moleculer\src\service-broker.js:805:16)
at moleculer\src\middlewares\hot-reload.js:34:20
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
If I pass rest a simlpe string, it runs but it creates end points for every verb (GET, PUT, etc). Removing the rest setting makes the action dissapear. The only workaround I've found for now is to rename the action to something else, like safeRemove.
The text was updated successfully, but these errors were encountered:
I'm disabling the default actions with the following:
Then I'm trying to override that remove action with a custom one like so:
Unfortunately, this crashing with the following error:
TypeError: def.rest.replace is not a function
If I pass rest a simlpe string, it runs but it creates end points for every verb (GET, PUT, etc). Removing the rest setting makes the action dissapear. The only workaround I've found for now is to rename the action to something else, like
safeRemove
.The text was updated successfully, but these errors were encountered: