mirror of
https://github.com/directus/directus.git
synced 2026-01-29 11:27:56 -05:00
Improve recursive filtering (#4493)
* Use lowercase chars only * Fix join alias mapping * Pass keys as array in delete * Cleanup delete controller * Don't catch unexpected errors
This commit is contained in:
@@ -213,7 +213,9 @@ router.delete(
|
||||
accountability: req.accountability,
|
||||
schema: req.schema,
|
||||
});
|
||||
|
||||
await service.delete(req.body as PrimaryKey[]);
|
||||
|
||||
return next();
|
||||
}),
|
||||
respond
|
||||
@@ -229,7 +231,9 @@ router.delete(
|
||||
accountability: req.accountability,
|
||||
schema: req.schema,
|
||||
});
|
||||
|
||||
const pk = req.params.pk.includes(',') ? req.params.pk.split(',') : req.params.pk;
|
||||
|
||||
await service.delete(pk as any);
|
||||
return next();
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user