diff options
author | Thibaut Girka <thib@sitedethib.com> | 2019-03-08 20:20:40 +0100 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2019-03-08 20:43:18 +0100 |
commit | 93daa97fc33b663aacaf6656af25d25e0ba4499b (patch) | |
tree | d72b7334c727468f0ff034f07ff5e71c2e989751 /app | |
parent | 29a09858f6700c0a6eb17797836589ed0839dec9 (diff) |
Fix min/max duration poll limits being inverted
Diffstat (limited to 'app')
-rw-r--r-- | app/serializers/initial_state_serializer.rb | 4 | ||||
-rw-r--r-- | app/serializers/rest/instance_serializer.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/serializers/initial_state_serializer.rb b/app/serializers/initial_state_serializer.rb index 3b07093bf..cfb25c120 100644 --- a/app/serializers/initial_state_serializer.rb +++ b/app/serializers/initial_state_serializer.rb @@ -15,8 +15,8 @@ class InitialStateSerializer < ActiveModel::Serializer { max_options: PollValidator::MAX_OPTIONS, max_option_chars: PollValidator::MAX_OPTION_CHARS, - min_expiration: PollValidator::MAX_EXPIRATION, - max_expiration: PollValidator::MIN_EXPIRATION, + min_expiration: PollValidator::MIN_EXPIRATION, + max_expiration: PollValidator::MAX_EXPIRATION, } end diff --git a/app/serializers/rest/instance_serializer.rb b/app/serializers/rest/instance_serializer.rb index 9547ba735..30e8dcbc1 100644 --- a/app/serializers/rest/instance_serializer.rb +++ b/app/serializers/rest/instance_serializer.rb @@ -43,8 +43,8 @@ class REST::InstanceSerializer < ActiveModel::Serializer { max_options: PollValidator::MAX_OPTIONS, max_option_chars: PollValidator::MAX_OPTION_CHARS, - min_expiration: PollValidator::MAX_EXPIRATION, - max_expiration: PollValidator::MIN_EXPIRATION, + min_expiration: PollValidator::MIN_EXPIRATION, + max_expiration: PollValidator::MAX_EXPIRATION, } end |