Skip to content

Commit 745e308

Browse files
committed
corrected launch_date to launch_date_utc for new timestamps
1 parent 1aa485e commit 745e308

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def hash_merge(*hashes)
133133
content_type :json
134134
start = params['start']
135135
final = params['final']
136-
statement = DB.prepare('SELECT * FROM upcoming WHERE launch_date BETWEEN ? AND ?;',)
136+
statement = DB.prepare('SELECT * FROM upcoming WHERE launch_date_utc BETWEEN ? AND ?;',)
137137
results = statement.execute(start, final)
138138
hash = results.each do |row|
139139
end
@@ -171,7 +171,7 @@ def hash_merge(*hashes)
171171
content_type :json
172172
start = params['start']
173173
final = params['final']
174-
statement = DB.prepare('SELECT * FROM launch WHERE launch_date BETWEEN ? AND ?;',)
174+
statement = DB.prepare('SELECT * FROM launch WHERE launch_date_utc BETWEEN ? AND ?;',)
175175
results = statement.execute(start, final)
176176
hash = results.each do |row|
177177
end

0 commit comments

Comments
 (0)