From f63ded6159b118d35251cb3498ae0e0ceafd25bb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 8 May 2026 06:55:28 +0000 Subject: [PATCH] chore(advisor): simplify report cleanup delete queries Agent-Logs-Url: https://github.com/appwrite/appwrite/sessions/6496395d-5cbf-42ba-a3e0-d3c9e6ca901c Co-authored-by: abnegate <5857008+abnegate@users.noreply.github.com> --- src/Appwrite/Platform/Workers/Deletes.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Appwrite/Platform/Workers/Deletes.php b/src/Appwrite/Platform/Workers/Deletes.php index d30732d609..97b4497c1c 100644 --- a/src/Appwrite/Platform/Workers/Deletes.php +++ b/src/Appwrite/Platform/Workers/Deletes.php @@ -232,12 +232,10 @@ class Deletes extends Action $this->deleteByGroup('insights', [ Query::equal('projectInternalId', [$projectInternalId]), Query::equal('reportInternalId', [$reportInternalId]), - Query::orderAsc(), ], $dbForPlatform, function (Document $insight) use ($dbForPlatform, $projectInternalId) { $this->deleteByGroup('insightCTAs', [ Query::equal('projectInternalId', [$projectInternalId]), Query::equal('insightInternalId', [$insight->getSequence()]), - Query::orderAsc(), ], $dbForPlatform); }); }