Skip to content

Commit 08d82bc

Browse files
authored
Merge pull request #209 from cronxco/plugin-admin
🗃️ Database efficiency
2 parents 57b8d7b + 73bb4ad commit 08d82bc

File tree

2 files changed

+253
-117
lines changed

2 files changed

+253
-117
lines changed

app/Models/IntegrationGroup.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,12 @@ public function getRelatedObjects()
9494
*/
9595
public function getDeletionSummary(): array
9696
{
97-
$events = $this->getRelatedEvents();
98-
$blocks = $this->getRelatedBlocks();
99-
$objects = $this->getRelatedObjects();
10097

10198
return [
10299
'integrations' => $this->integrations()->count(),
103-
'events' => $events->count(),
104-
'blocks' => $blocks->count(),
105-
'objects' => $objects->count(),
100+
'events' => $this->getRelatedEvents()->count(),
101+
'blocks' => $this->getRelatedBlocks()->count(),
102+
'objects' => $this->getRelatedObjects()->count(),
106103
'service_name' => $this->service,
107104
'account_id' => $this->account_id,
108105
];

0 commit comments

Comments
 (0)