1
0
Fork 0
mirror of synced 2024-05-20 12:42:39 +12:00

feat: added notifiers for delete abuse and audit logs

This commit is contained in:
Christy Jacob 2020-12-17 20:47:38 +05:30
parent f395c2e92c
commit 1a9648a6c5

View file

@ -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