Skip to content

Commit

Permalink
use video mkdate instead of chdate
Browse files Browse the repository at this point in the history
  • Loading branch information
tgloeggl committed Jan 6, 2025
1 parent b7bab6c commit facfc0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Models/Videos.php
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ public static function getNumberOfNewCourseVideos($course_id, $last_visit, $user
INNER JOIN `oc_playlist_seminar` AS ops ON (ops.playlist_id = op.id)';

$where = 'WHERE ops.seminar_id = :course_id
AND (UNIX_TIMESTAMP(video.chdate) > :last_visit OR UNIX_TIMESTAMP(opv.mkdate) > :last_visit)
AND (UNIX_TIMESTAMP(video.mkdate) > :last_visit OR UNIX_TIMESTAMP(opv.mkdate) > :last_visit)
AND video.trashed = 0
AND video.token IS NOT NULL
AND video.state IS NULL
Expand Down

0 comments on commit facfc0b

Please sign in to comment.