From 1a9648a6c59a33506235d2f706f4227386c56ab3 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Thu, 17 Dec 2020 20:47:38 +0530 Subject: [PATCH] feat: added notifiers for delete abuse and audit logs --- app/tasks/maintenance.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/app/tasks/maintenance.php b/app/tasks/maintenance.php index a585f79aa..df6373c3c 100644 --- a/app/tasks/maintenance.php +++ b/app/tasks/maintenance.php @@ -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