autobrr/internal/database
soup e6f32596a1
fix(releases): delete older than X (#993)
* fix(release): DeleteOlder func for zero duration

resolves a bug in the `DeleteOlder` function where recent 24-hour data wasn't deleted when set to `delete everything`. We now correctly set the olderThanTimestamp to a future date when duration is zero, ensuring complete deletion of all records.

* fix(releases): delete older

---------

Co-authored-by: ze0s <ze0s@riseup.net>
2023-07-22 14:49:28 +02:00
..
action.go fix(actions): replay watch dir and exec cmd (#1000) 2023-06-26 19:00:58 +02:00
api.go chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
database.go chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
download_client.go fix(downloadclient): could not delete (#1020) 2023-07-21 20:17:39 +02:00
feed.go chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
feed_cache.go chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
filter.go feat(filters): add support for feed description (#922) 2023-05-13 19:33:18 +02:00
indexer.go chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
irc.go fix(irc): panic when creating indexer with irc (#986) 2023-06-15 18:47:47 +02:00
notification.go feat(notification): Telegram add support for topics in groups (#894) 2023-05-07 17:30:07 +02:00
postgres.go chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
postgres_migrate.go fix(filters): could not delete with postgres (#1021) 2023-07-21 20:40:46 +02:00
release.go fix(releases): delete older than X (#993) 2023-07-22 14:49:28 +02:00
sqlite.go chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
sqlite_migrate.go feat(irc): add bouncer/znc support (#951) 2023-06-14 21:06:28 +02:00
user.go chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
utils.go chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
utils_test.go chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00