Skip to content

Commit

Permalink
feat: Subscription support shows data collection time, and completion…
Browse files Browse the repository at this point in the history
… time

Signed-off-by: 魏宏斌 <[email protected]>
  • Loading branch information
weihongbin1 authored and EdmondFrank committed Jun 7, 2023
1 parent debab06 commit c7479d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/workers/subscriptions_update_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ def work(msg)
end
if subject.status != status
update_attributes = { status: status, status_updated_at: status_updated_at }
if subject.status == Subject::PROGRESS
if status == Subject::PROGRESS
update_attributes.merge!({ collect_at: status_updated_at })
elsif subject.status == Subject::COMPLETE
elsif status == Subject::COMPLETE
update_attributes.merge!({ complete_at: status_updated_at })
end
subject.update!(update_attributes)
Expand Down

0 comments on commit c7479d2

Please sign in to comment.