From 20f6880641078d9e7bae8dd6d8d04d6db17a4675 Mon Sep 17 00:00:00 2001 From: Alejandra Buznego Date: Tue, 1 Nov 2022 17:20:42 -0400 Subject: [PATCH] fix update validation to support 52 --- lib/console/devices/device.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/console/devices/device.ex b/lib/console/devices/device.ex index 0291d5ef2..7922ba5eb 100644 --- a/lib/console/devices/device.ex +++ b/lib/console/devices/device.ex @@ -63,7 +63,7 @@ defmodule Console.Devices.Device do |> cast(attrs, [:name, :dev_eui, :app_eui, :app_key, :active, :packet_config_id, :config_profile_id, :in_xor_filter]) |> check_attrs_format() |> validate_required([:name, :dev_eui, :app_eui, :app_key, :oui, :organization_id]) - |> validate_length(:name, max: 50) + |> validate_length(:name, max: 52) |> unique_constraint(:dev_eui, name: :devices_dev_eui_app_eui_app_key_index, message: "An unexpected error has occurred, please try again") |> unique_constraint(:hotspot_address, name: :devices_hotspot_address_index, message: "This hotspot address is already used") end