Converted two maintenance methods to gateway
What does this MR do?
Converted two nightly maintenance methods into gateway as I like to do this in small steps
deactivateOldBaskets() method always returned 1 deleted basket at the logfile instead of showing the actual number. Got fixed by refactoring and checked by extending a test.
How confident are you it won't break things if deployed?
Links to related issues
- Touches #9 (maintenance)
- added a test, or explain why one is not needed/possible...
- no unrelated changes
- asked someone for a code review
- joined #foodsharing-beta channel at https://slackin.yunity.org
- added an entry to CHANGELOG.md (description, merge request link, username(s))