Skip to content

Commit

Permalink
fix: use the correct versioned entity for validating GQL requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Mar 25, 2024
1 parent c8017aa commit 1592147
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -11,7 +11,7 @@ import * as RA from "fp-ts/ReadonlyArray"
import * as TE from "fp-ts/TaskEither"
import { flow, pipe } from "fp-ts/function"

import { translateToNewGQLCollection } from "@hoppscotch/data"
import { HoppGQLRequest, translateToNewGQLCollection } from "@hoppscotch/data"
import { safeParseJSON } from "~/helpers/functional/json"
import { IMPORTER_INVALID_FILE_FORMAT } from "."

Expand Down Expand Up @@ -89,7 +89,7 @@ export const validateGQLCollection = (collection: unknown) => {
if (collectionSchemaParsedResult.type === "ok") {
const requests = collectionSchemaParsedResult.value.requests.map(
(request) => {
const requestSchemaParsedResult = HoppRESTRequest.safeParse(request)
const requestSchemaParsedResult = HoppGQLRequest.safeParse(request)

return requestSchemaParsedResult.type === "ok"
? requestSchemaParsedResult.value
Expand Down

0 comments on commit 1592147

Please sign in to comment.