From afcfb2f0c91903b200c4c10e0b9a76b07d7cc9b0 Mon Sep 17 00:00:00 2001 From: Sacha Al Himdani Date: Fri, 26 Dec 2025 10:16:26 +0100 Subject: [PATCH] Change minutes max length Signed-off-by: Sacha Al Himdani --- pkg/probo/meeting_service.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/probo/meeting_service.go b/pkg/probo/meeting_service.go index 47002dfff..7008865b6 100644 --- a/pkg/probo/meeting_service.go +++ b/pkg/probo/meeting_service.go @@ -48,6 +48,10 @@ type ( } ) +const ( + MinutesMaxLength = 50_000 +) + func (cmr *CreateMeetingRequest) Validate() error { v := validator.New() @@ -57,7 +61,7 @@ func (cmr *CreateMeetingRequest) Validate() error { v.CheckEach(cmr.AttendeeIDs, "attendee_ids", func(index int, item any) { v.Check(item, fmt.Sprintf("attendee_ids[%d]", index), validator.Required(), validator.GID(coredata.PeopleEntityType)) }) - v.Check(cmr.Minutes, "minutes", validator.SafeText(ContentMaxLength)) + v.Check(cmr.Minutes, "minutes", validator.SafeText(MinutesMaxLength)) return v.Error() } @@ -70,7 +74,7 @@ func (umr *UpdateMeetingRequest) Validate() error { v.CheckEach(umr.AttendeeIDs, "attendee_ids", func(index int, item any) { v.Check(item, fmt.Sprintf("attendee_ids[%d]", index), validator.Required(), validator.GID(coredata.PeopleEntityType)) }) - v.Check(umr.Minutes, "minutes", validator.SafeText(ContentMaxLength)) + v.Check(umr.Minutes, "minutes", validator.SafeText(MinutesMaxLength)) return v.Error() }