This repository was archived by the owner on Nov 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
lib/mastani_server/cms/delegates
test/mastani_server_web/query/cms Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,10 @@ defmodule MastaniServer.CMS.Delegate.CommentCURD do
100100 |> QueryBuilder . filter_pack ( filters )
101101 |> join ( :inner , [ c ] , a in assoc ( c , :author ) )
102102 |> distinct ( [ c , a ] , a . id )
103+ # new added when upgrade to ecto v3
104+ |> group_by ( [ c , a ] , a . id )
105+ |> group_by ( [ c , a ] , c . inserted_at )
106+ # new added when upgrade to ecto v3 end
103107 |> select ( [ c , a ] , a )
104108 |> ORM . paginater ( ~m( page size) a )
105109 |> done ( )
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ defmodule MastaniServer.Test.Query.PostComment do
3737 }
3838 }
3939 """
40- @ tag :wip
4140 test "can get comments participators of a post" , ~m( user guest_conn) a do
4241 { :ok , user2 } = db_insert ( :user )
4342
Original file line number Diff line number Diff line change @@ -114,7 +114,6 @@ defmodule MastaniServer.Test.Query.Post do
114114 }
115115 }
116116 """
117- @ tag :wip
118117 test "login user can get nil post favorited category id" , ~m( post) a do
119118 { :ok , user } = db_insert ( :user )
120119 user_conn = simu_conn ( :user , user )
You can’t perform that action at this time.
0 commit comments