Fixed selection criterion for newest upload
This commit is contained in:
parent
afe6f7ed7f
commit
ecbc30cb6e
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ class Screenshot < ApplicationRecord
|
|||
|
||||
# Get the newest screenshot regardless of the package it belongs to
|
||||
def self.newest_upload
|
||||
self.order(updated_at: :desc).where(approved: true).first
|
||||
self.order(created_at: :desc).where(approved: true).first
|
||||
end
|
||||
|
||||
# Returns true if the current user has administrative permissions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue