about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/serializers/initial_state_serializer.rb4
-rw-r--r--app/serializers/rest/instance_serializer.rb4
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