Skip to content

Commit 41a20ad

Browse files
authored
Merge pull request #5088 from rubyforgood/fix-fetch-latest
Fix fetch_latest_db on S3
2 parents ab318c0 + 1e8d259 commit 41a20ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tasks/fetch_latest_db.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def fetch_latest_backups
5959
# Retrieve the most up to date version of the DB dump
6060
#
6161
backup = backups.contents.select { |b| b.key.match?(".rds.dump") }.sort do |a,b|
62-
Time.parse(a.last_modified) <=> Time.parse(b.last_modified)
62+
a.last_modified <=> b.last_modified
6363
end.reverse.first
6464

6565
#

0 commit comments

Comments
 (0)