Prechádzať zdrojové kódy

fix(core): Fix `Unknown type "ShippingMethodCustomFields"` error

Michael Bromley 4 rokov pred
rodič
commit
d8104506a9

+ 1 - 1
packages/core/src/api/config/graphql-custom-fields.ts

@@ -418,7 +418,7 @@ export function addPaymentMethodQuoteCustomFields(
     if (0 < publicCustomFields.length) {
         customFieldTypeDefs = `
             extend type PaymentMethodQuote {
-                customFields: ShippingMethodCustomFields
+                customFields: PaymentMethodCustomFields
             }
         `;
     } else {

+ 1 - 0
packages/core/src/api/schema/admin-api/payment-method.type.graphql → packages/core/src/api/schema/common/payment-method.type.graphql

@@ -9,3 +9,4 @@ type PaymentMethod implements Node {
     checker: ConfigurableOperation
     handler: ConfigurableOperation!
 }
+