The MediaModerationDatabaseLookup service added in T351112: [S] Create an initial service to lookup scan rows from the database should be expanded so that it can provide a given number of mediamoderation_scan rows that match certain criteria related to the scan status and when the last scan timestamp.
Acceptance criteria
- The MediaModerationDatabaseLookup service should provide the necessary methods to get files listed in the mediamoderation_scan that need a scan, or have been last scanned before a specific date.
- These new methods should be properly tested.