about summary refs log tree commit diff
path: root/app/serializers/rest
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-03-08 20:20:40 +0100
committerThibG <thib@sitedethib.com>2019-03-08 20:43:18 +0100
commit93daa97fc33b663aacaf6656af25d25e0ba4499b (patch)
treed72b7334c727468f0ff034f07ff5e71c2e989751 /app/serializers/rest
parent29a09858f6700c0a6eb17797836589ed0839dec9 (diff)
Fix min/max duration poll limits being inverted
Diffstat (limited to 'app/serializers/rest')
-rw-r--r--app/serializers/rest/instance_serializer.rb4
1 files changed, 2 insertions, 2 deletions
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