inbox-schema-fix

This commit is contained in:
Untone 2023-10-14 18:37:17 +03:00
parent b70e70cba3
commit 87c45a48a2
2 changed files with 3 additions and 2 deletions

View File

@ -43,6 +43,8 @@ export const InboxProvider = (props: { children: JSX.Element }) => {
}, },
onerror(err) { onerror(err) {
console.error('sse connection closed by error', err) console.error('sse connection closed by error', err)
throw new Error() // NOTE: simple hack to close the connection
} }
}) })

View File

@ -67,7 +67,6 @@ export type Chat = {
title?: Maybe<Scalars['String']> title?: Maybe<Scalars['String']>
unread?: Maybe<Scalars['Int']> unread?: Maybe<Scalars['Int']>
updatedAt: Scalars['Int'] updatedAt: Scalars['Int']
users?: Maybe<Array<Maybe<Scalars['Int']>>>
} }
export type ChatInput = { export type ChatInput = {
@ -78,7 +77,7 @@ export type ChatInput = {
export type ChatMember = { export type ChatMember = {
id: Scalars['Int'] id: Scalars['Int']
lastSeen?: Maybe<Scalars['DateTime']> lastSeen: Maybe<Scalars['Int']>
name: Scalars['String'] name: Scalars['String']
online?: Maybe<Scalars['Boolean']> online?: Maybe<Scalars['Boolean']>
slug: Scalars['String'] slug: Scalars['String']