feat: added notifiers for delete abuse and audit logs
This commit is contained in:
parent
f395c2e92c
commit
1a9648a6c5
|
@ -37,12 +37,22 @@ function notifyDeleteExecutionLogs(array $projectIds)
|
|||
|
||||
function notifyDeleteAbuseLogs(array $projectIds)
|
||||
{
|
||||
|
||||
Resque::enqueue(DELETE_QUEUE_NAME, DELETE_CLASS_NAME, [
|
||||
'document' => new Document([
|
||||
'$collection' => Database::SYSTEM_COLLECTION_EXECUTIONS,
|
||||
'projectIds' => $projectIds
|
||||
]),
|
||||
]);
|
||||
}
|
||||
|
||||
function notifyDeleteAuditLogs(array $projectIds)
|
||||
{
|
||||
|
||||
Resque::enqueue(DELETE_QUEUE_NAME, DELETE_CLASS_NAME, [
|
||||
'document' => new Document([
|
||||
'$collection' => Database::SYSTEM_COLLECTION_EXECUTIONS,
|
||||
'projectIds' => $projectIds
|
||||
]),
|
||||
]);
|
||||
}
|
||||
|
||||
$cli
|
||||
|
|
Loading…
Reference in a new issue