Skip to content

Commit

Permalink
CONTRIB-9601: Fix dismissed recording filter field
Browse files Browse the repository at this point in the history
  • Loading branch information
ssj365 committed Jun 27, 2024
1 parent 90f9056 commit f1da833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/recording.php
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ protected static function fetch_records(array $selects, array $params): array {
// Filter out if no metadata was fetched.
if (!array_key_exists($recording->recordingid, $metadatas)) {
// If the recording was successfully fetched, mark it as dismissed if it is older than 30 days.
if (!in_array($recording->recordingid, $failedids) && $withindays > $recording->timecreated) {
if (!in_array($recording->recordingid, $failedids) && $withindays > $recording->timemodified) {
$recording = new self(0, $recording, null);
$recording->set_status(self::RECORDING_STATUS_DISMISSED);
}
Expand Down

0 comments on commit f1da833

Please sign in to comment.