Pārlūkot izejas kodu

chore: Fix merge issues

Michael Bromley 2 gadi atpakaļ
vecāks
revīzija
40e1029877

+ 7 - 7
packages/admin-ui/src/lib/catalog/src/components/product-options-editor/product-options-editor.component.ts

@@ -183,7 +183,7 @@ export class ProductOptionsEditorComponent extends BaseDetailComponent<ProductWi
         return input;
         return input;
     }
     }
 
 
-    protected setFormValues(entity: GetProductVariantOptions.Product, languageCode: LanguageCode): void {
+    protected setFormValues(entity: ProductWithOptions, languageCode: LanguageCode): void {
         const groupsForm = this.detailForm.get('optionGroups') as UntypedFormArray;
         const groupsForm = this.detailForm.get('optionGroups') as UntypedFormArray;
         for (const optionGroup of entity.optionGroups) {
         for (const optionGroup of entity.optionGroups) {
             const groupTranslation = findTranslation(optionGroup, languageCode);
             const groupTranslation = findTranslation(optionGroup, languageCode);
@@ -206,10 +206,10 @@ export class ProductOptionsEditorComponent extends BaseDetailComponent<ProductWi
     }
     }
 
 
     protected setCustomFieldsForm<
     protected setCustomFieldsForm<
-        T extends GetProductVariantOptions.OptionGroups | GetProductVariantOptions.Options,
+        T extends ProductWithOptions['optionGroups'][0] | ProductWithOptions['optionGroups'][0]['options'][0],
     >(
     >(
         customFields: CustomFieldConfig[],
         customFields: CustomFieldConfig[],
-        formGroup: FormGroup,
+        formGroup: UntypedFormGroup,
         entity: T,
         entity: T,
         currentTranslation?: TranslationOf<T>,
         currentTranslation?: TranslationOf<T>,
     ) {
     ) {
@@ -226,9 +226,9 @@ export class ProductOptionsEditorComponent extends BaseDetailComponent<ProductWi
     }
     }
 
 
     protected setOptionGroupForm(
     protected setOptionGroupForm(
-        entity: GetProductVariantOptions.OptionGroups,
+        entity: ProductWithOptions['optionGroups'][0],
         groupsForm: UntypedFormArray,
         groupsForm: UntypedFormArray,
-        currentTranslation?: TranslationOf<GetProductVariantOptions.OptionGroups>,
+        currentTranslation?: TranslationOf<ProductWithOptions['optionGroups'][0]>,
     ) {
     ) {
         const group = {
         const group = {
             id: entity.id,
             id: entity.id,
@@ -254,9 +254,9 @@ export class ProductOptionsEditorComponent extends BaseDetailComponent<ProductWi
     }
     }
 
 
     protected setOptionForm(
     protected setOptionForm(
-        entity: GetProductVariantOptionsQuery,
+        entity: ProductWithOptions['optionGroups'][0]['options'][0],
         optionsForm: UntypedFormArray,
         optionsForm: UntypedFormArray,
-        currentTranslation?: TranslationOf<GetProductVariantOptionsQuery>,
+        currentTranslation?: TranslationOf<ProductWithOptions['optionGroups'][0]['options'][0]>,
     ) {
     ) {
         const group = {
         const group = {
             id: entity.id,
             id: entity.id,

+ 11 - 3
packages/payments-plugin/src/mollie/mollie.controller.ts

@@ -20,9 +20,17 @@ export class MollieController {
             return Logger.warn(' Ignoring incoming webhook, because it has no body.id.', loggerCtx);
             return Logger.warn(' Ignoring incoming webhook, because it has no body.id.', loggerCtx);
         }
         }
         try {
         try {
-            await this.mollieService.handleMollieStatusUpdate(ctx, { channelToken, paymentMethodId, orderId: body.id });
-        } catch (error) {
-            Logger.error(`Failed to process incoming webhook: ${JSON.stringify(error?.message)}`, loggerCtx, error);
+            await this.mollieService.handleMollieStatusUpdate(ctx, {
+                channelToken,
+                paymentMethodId,
+                orderId: body.id,
+            });
+        } catch (error: any) {
+            Logger.error(
+                `Failed to process incoming webhook: ${JSON.stringify(error?.message)}`,
+                loggerCtx,
+                error,
+            );
             throw error;
             throw error;
         }
         }
     }
     }

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 362 - 354
yarn.lock


Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels