patch: trigger only if both collection and document are present
This commit is contained in:
parent
e3a6c899c3
commit
4a47c59380
|
@ -283,7 +283,7 @@ App::shutdown(function ($utopia, $request, $response, $project, $events, $audits
|
|||
$audits->trigger();
|
||||
}
|
||||
|
||||
if (!empty($deletes->getParam('collection'))) {
|
||||
if (!empty($deletes->getParam('collection')) && !empty($deletes->getParam('document'))) {
|
||||
$deletes->trigger();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue