Fix min/max duration poll limits being inverted

This commit is contained in:
Thibaut Girka 2019-03-08 20:20:40 +01:00 committed by ThibG
parent 29a09858f6
commit 93daa97fc3
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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