loadchats-api
This commit is contained in:
parent
54817e506d
commit
1a97852efb
|
@ -6,22 +6,16 @@ export default gql`
|
|||
error
|
||||
chats {
|
||||
id
|
||||
admins
|
||||
users
|
||||
unread
|
||||
description
|
||||
updatedAt
|
||||
messages {
|
||||
id
|
||||
body
|
||||
author
|
||||
}
|
||||
admins {
|
||||
slug
|
||||
name
|
||||
}
|
||||
users {
|
||||
slug
|
||||
name
|
||||
}
|
||||
unread
|
||||
description
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -272,8 +272,8 @@ export const apiClient = {
|
|||
// inbox
|
||||
getChats: async (options: QueryLoadChatsArgs) => {
|
||||
const resp = await privateGraphQLClient.query(myChats, options).toPromise()
|
||||
console.debug('[getChats]', resp)
|
||||
return resp.data.myChats
|
||||
console.debug('[loadChats]', resp)
|
||||
return resp.data.loadChats
|
||||
},
|
||||
|
||||
createChat: async (options: MutationCreateChatArgs) => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user