Skip to content
代码片段 群组 项目
提交 7710cd1e 编辑于 作者: Tiger Watson's avatar Tiger Watson 提交者: Heinrich Lee Yu
浏览文件

Remove extra subquery

上级 7ab93ce3
No related branches found
No related tags found
无相关合并请求
...@@ -33,7 +33,7 @@ def perform ...@@ -33,7 +33,7 @@ def perform
subscription.max_seats_used, subscription.max_seats_used,
subscription.seats_in_use, subscription.seats_in_use,
subscription.seats_owed, subscription.seats_owed,
max_seat_used_changed_at.present? ? "timestamp '#{max_seat_used_changed_at}'" : '(select null::timestamp)' max_seat_used_changed_at.present? ? "timestamp '#{max_seat_used_changed_at}'" : 'NULL::timestamp'
] ]
rescue ActiveRecord::QueryCanceled => e rescue ActiveRecord::QueryCanceled => e
track_error(e, subscription) track_error(e, subscription)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册