You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
channels =fmap (fmap (tUntagged . qualifyAs loc .Id)) maybeChannels
322
322
pure$UserGroup_ {..}
323
323
324
-
sortColumn::Text
325
-
sortColumn =case paginationState of
326
-
PaginationSortByName _ ->"name"
327
-
PaginationSortByCreatedAt _ ->"created_at"
328
-
329
324
selectors::Text
330
325
selectors =
331
326
T.intercalate ", "$
332
-
filter (not.T.null) $
333
-
["id", "name", "managed_by", "created_at"]
334
-
<> ["(select count(*) from user_group_member as ugm where ugm.user_group_id = ug.id) as members"| includeMemberCount]
335
-
<> ["(select count(*) from user_group_channel as ugc where ugc.user_group_id = ug.id) as channels"]
336
-
<> ["coalesce((select array_agg(ugc.conv_id) from user_group_channel as ugc where ugc.user_group_id = ug.id), array[]::uuid[]) as channel_ids"| includeChannels]
327
+
["id", "name", "managed_by", "created_at"]
328
+
<> ["(select count(*) from user_group_member as ugm where ugm.user_group_id = ug.id) as members"| includeMemberCount]
329
+
<> ["(select count(*) from user_group_channel as ugc where ugc.user_group_id = ug.id) as channels"]
330
+
<> ["coalesce((select array_agg(ugc.conv_id) from user_group_channel as ugc where ugc.user_group_id = ug.id), array[]::uuid[]) as channel_ids"| includeChannels]
0 commit comments