LiuJ 3 bulan lalu
induk
melakukan
496bfa651c
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      app/JsonRpc/ChatService.php

+ 2 - 2
app/JsonRpc/ChatService.php

@@ -1355,9 +1355,9 @@ class ChatService implements ChatServiceInterface
      */
     public function getBusinessDistrictList(array $data): array
     {
-        $query = ChatGroupsMember::Join('chat_topics', 'chat_topics.group_id', '=', 'chat_groups_members.group_id')
+        $query = GroupMemberImp::Join('chat_topics', 'chat_topics.group_id', '=', 'chat_groups_members.group_id')
             ->leftJoin('chat_topic_class', 'chat_topic_class.id', '=', 'chat_topics.type')
-            ->where(['chat_groups_members.user_id' => $data['user_id']])
+            ->where(['group_member.user_id' => $data['user_id']])
             ->when($data, function ($query) use ($data) {
                 if (!empty($data['type'])) {
                     $query->where(['chat_topics.type' => $data['type']]);