Skip to content

Commit

Permalink
Merge pull request #13 from fetlife/versioning-fix
Browse files Browse the repository at this point in the history
Fix for different formats in version check
  • Loading branch information
fl-slava authored Nov 18, 2022
2 parents 622228d + a389a50 commit 41ced8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rollout/ui/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class Rollout
module UI
VERSION = "0.5.1"
VERSION = "0.5.2"
end
end
2 changes: 1 addition & 1 deletion lib/rollout/ui/web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Web < Sinatra::Base
rollout = config.get(:instance)
actor = config.get(:actor, scope: self)
feature_data = rollout.get(params[:feature_name]).data
if feature_data['updated_at'] && params[:last_updated_at] != feature_data['updated_at']
if feature_data['updated_at'] && params[:last_updated_at].to_s != feature_data['updated_at'].to_s
redirect "#{feature_path(params[:feature_name])}?error=Rollout version outdated. Review changes below and try again."
end
with_rollout_context(rollout, actor: actor) do
Expand Down

0 comments on commit 41ced8b

Please sign in to comment.