1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 13:19:43 +02:00

Increase category name size

This commit is contained in:
HarveyKandola 2022-01-11 13:52:41 -05:00
parent 88211739f0
commit 707dc1e052

View file

@ -74,10 +74,10 @@ func (h *Handler) Add(w http.ResponseWriter, r *http.Request) {
return return
} }
// Category max length 30. // Category max length 50.
cat.Name = strings.TrimSpace(cat.Name) cat.Name = strings.TrimSpace(cat.Name)
if len(cat.Name) > 30 { if len(cat.Name) > 50 {
cat.Name = cat.Name[:30] cat.Name = cat.Name[:50]
} }
err = h.Store.Category.Add(ctx, cat) err = h.Store.Category.Add(ctx, cat)