Thanks to visit codestin.com
Credit goes to github.com

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

Commit 7a79b13

Browse files
committed
chore(deploy): build production
1 parent e6dbc97 commit 7a79b13

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

deploy/production/api_server.tar.gz

5 Bytes
Binary file not shown.

lib/groupher_server/cms/delegates/Seeds/seeds.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ defmodule GroupherServer.CMS.Delegate.Seeds do
122122
defp seed_comments(thread, article_id, user) do
123123
0..Enum.random(1..5)
124124
|> Enum.each(fn _ ->
125-
text = Faker.Lorem.sentence(%Range{first: 30, last: 80})
125+
text = Faker.Lorem.sentence(20)
126126
{:ok, comment} = CMS.create_comment(thread, article_id, mock_comment(text), user)
127127
seed_comment_emotions(comment)
128128
seed_comment_replies(comment)
@@ -133,7 +133,7 @@ defmodule GroupherServer.CMS.Delegate.Seeds do
133133
with {:ok, users} <- db_insert_multi(:user, Enum.random(1..5)) do
134134
users
135135
|> Enum.each(fn user ->
136-
text = Faker.Lorem.sentence(%Range{first: 30, last: 80})
136+
text = Faker.Lorem.sentence(20)
137137
{:ok, _} = CMS.reply_comment(comment.id, mock_comment(text), user)
138138
end)
139139
end

priv/mock/populator/cms_post.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ defmodule GroupherServer.Mock.CMS.Post do
77
def random_attrs do
88
%{
99
title: Faker.Name.first_name() <> " " <> Faker.Name.last_name(),
10-
body: Faker.Lorem.paragraph(%Range{first: 1, last: 2})
10+
body: Faker.Lorem.sentence(20)
1111
}
1212
end
1313

0 commit comments

Comments
 (0)