Skip to content

Commit 2d2167b

Browse files
committed
another spot-on copy-pasta mistake found by cursor, well done
1 parent 0e59468 commit 2d2167b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/sentry/debug_files/release_files.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from django.db import router
66
from django.utils import timezone
77

8-
from sentry.models.debugfile import ProjectDebugFile
98
from sentry.models.releasefile import ReleaseFile
109
from sentry.utils import metrics
1110
from sentry.utils.db import atomic_transaction
@@ -33,8 +32,8 @@ def renew_releasefiles_by_id(releasefile_ids: list[int]):
3332
threshold_date = now - timedelta(days=AVAILABLE_FOR_RENEWAL_DAYS)
3433

3534
with metrics.timer("release_files_renewal"):
36-
with atomic_transaction(using=(router.db_for_write(ProjectDebugFile),)):
37-
updated_rows_count = ProjectDebugFile.objects.filter(
35+
with atomic_transaction(using=(router.db_for_write(ReleaseFile),)):
36+
updated_rows_count = ReleaseFile.objects.filter(
3837
id__in=releasefile_ids, date_accessed__lte=threshold_date
3938
).update(date_accessed=now)
4039
if updated_rows_count > 0:

0 commit comments

Comments
 (0)