]> git.koha-community.org Git - koha.git/commit
Bug 32093: Make help and code match for bg-days in cleanup_database.pl
authorKatrin Fischer <katrin.fischer.83@web.de>
Tue, 15 Nov 2022 16:54:47 +0000 (16:54 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 17 Nov 2022 17:55:12 +0000 (14:55 -0300)
commit356e136b0f08acba364a62985909e9dcb3a6a31b
treed39c210b79dd7774d45a0cb3764707b3fe3bf21a
parente7d4898d678c213dec7af6083f3e8cc9ed4cd649
Bug 32093: Make help and code match for bg-days in cleanup_database.pl

There as a mismatch between the parameter name in documentation (bg-days)
and what was checked in the code (bg-jobs). This makes both match.

To test:
* Apply patch
* Make sure you have some background_jobs older than one day
* Verify the help of the script documents the parameter bg-days
* Run the cleanup_database.pl job
  Example:  ./misc/cronjobs/cleanup_database.pl --bg-days  --confirm -v
* Verify there are no errors and the lines have been deleted as expected

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
misc/cronjobs/cleanup_database.pl