Skip to content

Commit 8c9e8e3

Browse files
committed
Cleanup - Do not remove trial entries otherwise our dashboard will display invalid results
1 parent c1ef6e3 commit 8c9e8e3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/Jobs/Cleanup.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ private function hasDataToCleanup(\Illuminate\Support\Collection $users): bool
277277
|| Conversation::withoutGlobalScope('tenant_scope')->whereIn('created_by', $userIds)->exists()
278278
|| File::withoutGlobalScope('tenant_scope')->whereIn('created_by', $userIds)->exists()
279279
|| Collection::withoutGlobalScope('tenant_scope')->whereIn('created_by', $userIds)->exists()
280-
|| Trial::withoutGlobalScope('tenant_scope')->whereIn('created_by', $userIds)->exists()
280+
// || Trial::withoutGlobalScope('tenant_scope')->whereIn('created_by', $userIds)->exists()
281281
|| Vector::withoutGlobalScope('tenant_scope')->whereIn('created_by', $userIds)->exists()
282282
|| TimelineItem::whereIn('owned_by', $userIds)->exists()
283283
|| TimelineFact::whereIn('owned_by', $userIds)->exists();
@@ -331,7 +331,7 @@ private function cleanupTenantData(\Illuminate\Support\Collection $users): void
331331
Vector::withoutGlobalScope('tenant_scope')->whereIn('created_by', $userIds)->delete();
332332
File::withoutGlobalScope('tenant_scope')->whereIn('created_by', $userIds)->delete();
333333
Collection::withoutGlobalScope('tenant_scope')->whereIn('created_by', $userIds)->delete();
334-
Trial::withoutGlobalScope('tenant_scope')->whereIn('created_by', $userIds)->delete();
334+
// Trial::withoutGlobalScope('tenant_scope')->whereIn('created_by', $userIds)->delete();
335335

336336
// 4. Leaks & co
337337
TimelineItem::whereIn('owned_by', $userIds)->delete();

0 commit comments

Comments
 (0)