From 6fd4db95c328fe4d495a9aa94abeb49f9f3570fa Mon Sep 17 00:00:00 2001 From: Luna D Date: Tue, 7 Sep 2021 21:58:34 +0200 Subject: [PATCH] bump max commission item price to $99999 --- lib/philomena/commissions/item.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena/commissions/item.ex b/lib/philomena/commissions/item.ex index 5b53301e..59682f7a 100644 --- a/lib/philomena/commissions/item.ex +++ b/lib/philomena/commissions/item.ex @@ -24,7 +24,7 @@ defmodule Philomena.Commissions.Item do |> validate_required([:commission_id, :base_price, :item_type, :description]) |> validate_length(:description, max: 300, count: :bytes) |> validate_length(:add_ons, max: 500, count: :bytes) - |> validate_number(:base_price, greater_than_or_equal_to: 0, less_than_or_equal_to: 500) + |> validate_number(:base_price, greater_than_or_equal_to: 0, less_than_or_equal_to: 99_999) |> validate_inclusion(:item_type, Commission.types()) |> foreign_key_constraint(:example_image_id, name: :fk_rails_56d368749a) end