diff --git a/src/core/client/stream/mutations/CreateCommentMutation.ts b/src/core/client/stream/mutations/CreateCommentMutation.ts index 0482fd238..7be32b3dd 100644 --- a/src/core/client/stream/mutations/CreateCommentMutation.ts +++ b/src/core/client/stream/mutations/CreateCommentMutation.ts @@ -9,10 +9,10 @@ import { } from "talk-framework/lib/relay"; import { Omit } from "talk-framework/types"; -import { CreateCommentMutation } from "talk-stream/__generated__/CreateCommentMutation.graphql"; +import { CreateCommentMutation as CreateCommentType } from "talk-stream/__generated__/CreateCommentMutation.graphql"; export type CreateCommentInput = Omit< - CreateCommentMutation["variables"]["input"], + CreateCommentType["variables"]["input"], "clientMutationId" >; @@ -41,7 +41,7 @@ let clientMutationId = 0; function commit(environment: Environment, input: CreateCommentInput) { const me = getMe(environment)!; const currentDate = new Date().toISOString(); - return commitMutationPromiseNormalized(environment, { + return commitMutationPromiseNormalized(environment, { mutation, variables: { input: { @@ -90,4 +90,4 @@ export const withCreateCommentMutation = createMutationContainer( export type CreateCommentMutation = ( input: CreateCommentInput -) => Promise; +) => Promise;