Linter fix
This commit is contained in:
parent
6a94474732
commit
11cbdd47af
|
@ -22,4 +22,4 @@ async function run() {
|
|||
await browser.close()
|
||||
}
|
||||
|
||||
run()
|
||||
await run()
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { For, createSignal, Show, onMount, createEffect } from 'solid-js'
|
||||
import { For, createSignal, Show, onMount, createEffect, createMemo } from 'solid-js'
|
||||
import type { Author } from '../../graphql/types.gen'
|
||||
import { AuthorCard } from '../Author/Card'
|
||||
import { Icon } from '../_shared/Icon'
|
||||
|
@ -70,12 +70,10 @@ export const InboxView = () => {
|
|||
const [cashedAuthors, setCashedAuthors] = createSignal<Author[]>([])
|
||||
const [postMessageText, setPostMessageText] = createSignal('')
|
||||
const [loading, setLoading] = createSignal<boolean>(false)
|
||||
const [currentSlug, setCurrentSlug] = createSignal<Author['slug'] | null>()
|
||||
// const [currentSlug, setCurrentSlug] = createSignal<Author['slug'] | null>()
|
||||
|
||||
const { session } = useSession()
|
||||
createEffect(() => {
|
||||
setCurrentSlug(session()?.user?.slug)
|
||||
})
|
||||
const currentSlug = createMemo(() => session()?.user?.slug)
|
||||
|
||||
// Поиск по диалогам
|
||||
const getQuery = (query) => {
|
||||
|
|
|
@ -7,7 +7,9 @@ import type {
|
|||
LoadShoutsOptions,
|
||||
QueryLoadChatsArgs,
|
||||
QueryLoadAuthorsByArgs,
|
||||
QueryLoadMessagesByArgs
|
||||
QueryLoadMessagesByArgs,
|
||||
MutationCreateChatArgs,
|
||||
MutationCreateMessageArgs
|
||||
} from '../graphql/types.gen'
|
||||
import { publicGraphQLClient } from '../graphql/publicGraphQLClient'
|
||||
import { getToken, privateGraphQLClient } from '../graphql/privateGraphQLClient'
|
||||
|
@ -223,12 +225,12 @@ export const apiClient = {
|
|||
|
||||
// CUDL
|
||||
|
||||
createChat: async ({ title, members }) => {
|
||||
return await privateGraphQLClient.mutation(createChat, { title: title, members: members }).toPromise()
|
||||
createChat: async (options: MutationCreateChatArgs) => {
|
||||
return await privateGraphQLClient.mutation(createChat, options).toPromise()
|
||||
},
|
||||
|
||||
createMessage: async ({ chat, body }) => {
|
||||
return await privateGraphQLClient.mutation(createChat, { chat: chat, body: body }).toPromise()
|
||||
createMessage: async (options: MutationCreateMessageArgs) => {
|
||||
return await privateGraphQLClient.mutation(createChat, options).toPromise()
|
||||
},
|
||||
|
||||
updateReaction: async ({ reaction }) => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user