You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/controllers/api/admin/v1/admin_controller.rb
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,12 @@ def check
25
25
defuser_info
26
26
user=find_user_by_id
27
27
returnunlessuser
28
-
valid=user.heartbeats.where("time BETWEEN ? AND ?",Time.utc(2000,1,1).to_i,Time.utc(2100,1,1).to_i)
28
+
valid=user.heartbeats.where("CASE WHEN time > 1000000000000 THEN time / 1000 ELSE time END BETWEEN ? AND ?",Time.utc(2000,1,1).to_i,Time.utc(2100,1,1).to_i)
0 commit comments