Use `id` instead of `updated_at` for more consistent behavior

This commit is contained in:
Justin Lau 2016-10-27 00:31:44 +08:00 committed by GitHub
parent 325ae4ad08
commit 844d2d1b28
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ abstract class ImportModel extends Model
$file = $this
->import_file()
->withDeferred($sessionKey)
->orderBy('updated_at', 'desc')
->orderBy('id', 'desc')
->first()
;