Fix min/max duration poll limits being inverted

th-downstream
Thibaut Girka 6 years ago committed by ThibG
parent 5baae3d9c0
commit 96e7f430de

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

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

Loading…
Cancel
Save