Intercept a DELETE default route not working in record list

Hi,

when I try to intercept a DELETE default route, it works when I go to the record summary and select Delete photo in the Actions menu

Here is my interception:

image

However, when I use the Delete button from the record list after selecting one record, the call is not intercepted and it directly deletes the record in the DB.

Is it a normal behaviour ?

Best regards

Projet: joinly-forest
Config:

{
    "liana": "forest-express-mongoose",
    "liana_version": "8.7.9",
    "stack": {
      "database_type": "multiple",
      "engine": "nodejs",
      "engine_version": "18.12.1",
      "orm_version": "5.8.13"
    }
  }

Hello @guillaumejauffret,

The delete call with multiple records is not intercepted by your route definition because it does not match the path:

  • For a single record: DELETE /PE_File/:fileId
  • Multiple records: DELETE /PE_File

You can define a second route to override the bulk delete and handle the multiple records deletion with your function.

Hope this helps !

Best regards,

1 Like

thanks @dogan.ay , it is clear

1 Like