Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 6c016fb

Browse files
committed
fix(post): link_addr length too small
1 parent b471b96 commit 6c016fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mastani_server/cms/post.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ defmodule MastaniServer.CMS.Post do
103103
content
104104
|> validate_length(:title, min: 3, max: 50)
105105
|> validate_length(:body, min: 3, max: 10_000)
106-
|> validate_length(:link_addr, min: 5, max: 200)
106+
|> validate_length(:link_addr, min: 5, max: 400)
107107

108108
# |> foreign_key_constraint(:posts_tags, name: :posts_tags_tag_id_fkey)
109109
# |> foreign_key_constraint(name: :posts_tags_tag_id_fkey)

0 commit comments

Comments
 (0)