chore: Increase the limit of greeting message (#7883)

This commit is contained in:
Pranav Raj S
2023-09-08 03:03:09 -07:00
committed by GitHub
parent 8bc2bc6d40
commit 4503ba018d
2 changed files with 2 additions and 0 deletions

View File

@@ -51,6 +51,7 @@ class Inbox < ApplicationRecord
validates :account_id, presence: true
validates :timezone, inclusion: { in: TZInfo::Timezone.all_identifiers }
validates :out_of_office_message, length: { maximum: Limits::OUT_OF_OFFICE_MESSAGE_MAX_LENGTH }
validates :greeting_message, length: { maximum: Limits::GREETING_MESSAGE_MAX_LENGTH }
validate :ensure_valid_max_assignment_limit
belongs_to :account

View File

@@ -3,4 +3,5 @@ module Limits
BULK_EXTERNAL_HTTP_CALLS_LIMIT = 25
URL_LENGTH_LIMIT = 2048 # https://stackoverflow.com/questions/417142
OUT_OF_OFFICE_MESSAGE_MAX_LENGTH = 10_000
GREETING_MESSAGE_MAX_LENGTH = 10_000
end