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

Commit 308f127

Browse files
committed
chore(seeds): add mithril community stupidly
1 parent 74803c7 commit 308f127

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

lib/mastani_server/cms/delegates/seeds.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ defmodule MastaniServer.CMS.Delegate.Seeds do
6565
{:ok, communities} <- seed_for_communities(bot, :framework_patch) do
6666
threadify_communities(communities, threads.entries)
6767
tagfy_threads(communities, threads.entries, bot)
68-
categorify_communities(communities, categories, :other)
68+
categorify_communities(communities, categories, :frontend)
6969
end
7070
end
7171

lib/mastani_server/cms/delegates/seeds_config.ex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defmodule MastaniServer.CMS.Delegate.SeedsConfig do
1212
# "nim",
1313
# "fasm",
1414
# "zig"
15-
"prolog"
15+
# "prolog"
1616
]
1717
end
1818

@@ -59,8 +59,10 @@ defmodule MastaniServer.CMS.Delegate.SeedsConfig do
5959

6060
def communities(:framework_patch) do
6161
[
62-
"cyclejs"
62+
# "cyclejs"
6363
# "graphql"
64+
# "dubbo",
65+
"mithril"
6466
]
6567
end
6668

priv/mock/community_patch_seeds.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ alias MastaniServer.CMS
33
# 1. place add community to MastaniServer.CMS.Delegate.SeedsConfig first
44
# 2. need manulay set cate in categorify_communities
55

6-
CMS.seed_communities(:pl_patch)
7-
# CMS.seed_communities(:framework_patch)
6+
# CMS.seed_communities(:pl_patch)
7+
CMS.seed_communities(:framework_patch)

0 commit comments

Comments
 (0)