mirror of
https://github.com/documize/community.git
synced 2025-07-19 05:09:42 +02:00
Increase category name size
This commit is contained in:
parent
88211739f0
commit
707dc1e052
1 changed files with 3 additions and 3 deletions
|
@ -74,10 +74,10 @@ func (h *Handler) Add(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
// Category max length 30.
|
||||
// Category max length 50.
|
||||
cat.Name = strings.TrimSpace(cat.Name)
|
||||
if len(cat.Name) > 30 {
|
||||
cat.Name = cat.Name[:30]
|
||||
if len(cat.Name) > 50 {
|
||||
cat.Name = cat.Name[:50]
|
||||
}
|
||||
|
||||
err = h.Store.Category.Add(ctx, cat)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue