Skip to content

Commit

Permalink
Fixing format
Browse files Browse the repository at this point in the history
  • Loading branch information
fl-slava committed Nov 15, 2022
1 parent 4fea2b6 commit 59d509e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rollout/ui/web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class Web < Sinatra::Base
feature.users = params[:users].split(',').map(&:strip).uniq.sort
end
feature.data.update(description: params[:description])
feature.data.update(updated_at: Time.now)
feature.data.update(updated_at: Time.now.to_i)
end
end

Expand All @@ -75,7 +75,7 @@ class Web < Sinatra::Base
with_rollout_context(rollout, actor: actor) do
rollout.with_feature(params[:feature_name]) do |feature|
feature.percentage = params[:percentage].to_f.clamp(0.0, 100.0)
feature.data.update(updated_at: Time.now)
feature.data.update(updated_at: Time.now.to_i)
end
end

Expand Down

0 comments on commit 59d509e

Please sign in to comment.