From 93daa97fc33b663aacaf6656af25d25e0ba4499b Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Fri, 8 Mar 2019 20:20:40 +0100 Subject: [PATCH] Fix min/max duration poll limits being inverted --- app/serializers/initial_state_serializer.rb | 4 ++-- 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 3b07093bf4..cfb25c120f 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 9547ba7358..30e8dcbc18 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