Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mssalemi committed Nov 28, 2024
1 parent 6eb4e8a commit ee9edde
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
1 change: 0 additions & 1 deletion packages/app/src/cli/services/generate-schema.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {generateSchemaService} from './generate-schema.js'
import {testAppLinked, testDeveloperPlatformClient, testFunctionExtension} from '../models/app/app.test-data.js'
import {SchemaDefinitionByApiTypeQueryVariables} from '../api/graphql/functions/generated/schema-definition-by-api-type.js'
import {describe, expect, vi, test} from 'vitest'
import {AbortError} from '@shopify/cli-kit/node/error'
import {inTemporaryDirectory, readFile, mkdir} from '@shopify/cli-kit/node/fs'
Expand Down
14 changes: 2 additions & 12 deletions packages/app/src/cli/services/generate-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,7 @@ async function generateSchemaFromTarget({
version,
}
// Api key required for partners reqs, can be removed once fully migrated to AMF
const definition = await developerPlatformClient.targetSchemaDefinition(
variables,
apiKey,
orgId,
appId,
)
const definition = await developerPlatformClient.targetSchemaDefinition(variables, apiKey, orgId, appId)

if (!definition) {
throw new AbortError(
Expand Down Expand Up @@ -116,12 +111,7 @@ async function generateSchemaFromApiType({
type,
}

const definition = await developerPlatformClient.apiSchemaDefinition(
variables,
apiKey,
orgId,
appId,
)
const definition = await developerPlatformClient.apiSchemaDefinition(variables, apiKey, orgId, appId)

if (!definition) {
throw new AbortError(
Expand Down
2 changes: 2 additions & 0 deletions packages/cli-kit/src/public/node/api/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const limiter = new Bottleneck({
*
* @param orgId - Organization identifier.
* @param token - Authentication token.
* @param appId - App identifier.
* @returns Request configuration object.
*/
async function setupRequest(orgId: string, token: string, appId: string) {
Expand All @@ -39,6 +40,7 @@ async function setupRequest(orgId: string, token: string, appId: string) {
* @param orgId - Organization identifier.
* @param query - Typed GraphQL document node.
* @param token - Authentication token.
* @param appId - App identifier.
* @param variables - Optional query variables.
* @returns Promise resolving to the typed query result.
*/
Expand Down

0 comments on commit ee9edde

Please sign in to comment.