From 87c45a48a2048678df87de9139b59e8db14914d0 Mon Sep 17 00:00:00 2001 From: Untone Date: Sat, 14 Oct 2023 18:37:17 +0300 Subject: [PATCH] inbox-schema-fix --- src/context/inbox.tsx | 2 ++ src/graphql/types.gen.ts | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/context/inbox.tsx b/src/context/inbox.tsx index 44b24e53..d37380e0 100644 --- a/src/context/inbox.tsx +++ b/src/context/inbox.tsx @@ -43,6 +43,8 @@ export const InboxProvider = (props: { children: JSX.Element }) => { }, onerror(err) { console.error('sse connection closed by error', err) + + throw new Error() // NOTE: simple hack to close the connection } }) diff --git a/src/graphql/types.gen.ts b/src/graphql/types.gen.ts index 293826d2..0aa3f6b8 100644 --- a/src/graphql/types.gen.ts +++ b/src/graphql/types.gen.ts @@ -67,7 +67,6 @@ export type Chat = { title?: Maybe unread?: Maybe updatedAt: Scalars['Int'] - users?: Maybe>> } export type ChatInput = { @@ -78,7 +77,7 @@ export type ChatInput = { export type ChatMember = { id: Scalars['Int'] - lastSeen?: Maybe + lastSeen: Maybe name: Scalars['String'] online?: Maybe slug: Scalars['String']