Skip to content

Commit

Permalink
Verify deletion of shared resources in test_removebuilds
Browse files Browse the repository at this point in the history
Also cleanup various PHPStan warnings in test_removebuilds.php
  • Loading branch information
zackgalbreath committed Nov 22, 2024
1 parent ebca0d5 commit 48e1651
Show file tree
Hide file tree
Showing 3 changed files with 224 additions and 223 deletions.
4 changes: 2 additions & 2 deletions app/Utils/DatabaseCleanupUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,9 @@ public static function deleteUnusedRows(string $table, string $field, string $ta

$start = intval($start);
$max = intval($max);

$total = $max - $start;
$total = $max - $start + 1;
if ($total < 1) {
Log::info("Invalid values found for min ({$start}) and/or max ({$max}) for `{$field}` on `{$table}`");
return;
}
$num_done = 0;
Expand Down
Loading

0 comments on commit 48e1651

Please sign in to comment.