Skip to content

Commit

Permalink
update deleted rows with every deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya committed Jan 22, 2024
1 parent 792ad96 commit 1ddaa5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tgapi/pkg/persistence/prune.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ WHERE ref = any (array(SELECT ref FROM testrun WHERE created_at < $1 ORDER BY cr
if err != nil {
return -1, -1, fmt.Errorf("error getting rows affected after deleting testupgrade entries: %v", err)
}
deletedRows += int(deleted)

return prunedRows, deletedRows, nil
}

0 comments on commit 1ddaa5b

Please sign in to comment.