Michael Bromley 2 лет назад
Родитель
Сommit
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;
     }
 
-    protected setFormValues(entity: GetProductVariantOptions.Product, languageCode: LanguageCode): void {
+    protected setFormValues(entity: ProductWithOptions, languageCode: LanguageCode): void {
         const groupsForm = this.detailForm.get('optionGroups') as UntypedFormArray;
         for (const optionGroup of entity.optionGroups) {
             const groupTranslation = findTranslation(optionGroup, languageCode);
@@ -206,10 +206,10 @@ export class ProductOptionsEditorComponent extends BaseDetailComponent<ProductWi
     }
 
     protected setCustomFieldsForm<
-        T extends GetProductVariantOptions.OptionGroups | GetProductVariantOptions.Options,
+        T extends ProductWithOptions['optionGroups'][0] | ProductWithOptions['optionGroups'][0]['options'][0],
     >(
         customFields: CustomFieldConfig[],
-        formGroup: FormGroup,
+        formGroup: UntypedFormGroup,
         entity: T,
         currentTranslation?: TranslationOf<T>,
     ) {
@@ -226,9 +226,9 @@ export class ProductOptionsEditorComponent extends BaseDetailComponent<ProductWi
     }
 
     protected setOptionGroupForm(
-        entity: GetProductVariantOptions.OptionGroups,
+        entity: ProductWithOptions['optionGroups'][0],
         groupsForm: UntypedFormArray,
-        currentTranslation?: TranslationOf<GetProductVariantOptions.OptionGroups>,
+        currentTranslation?: TranslationOf<ProductWithOptions['optionGroups'][0]>,
     ) {
         const group = {
             id: entity.id,
@@ -254,9 +254,9 @@ export class ProductOptionsEditorComponent extends BaseDetailComponent<ProductWi
     }
 
     protected setOptionForm(
-        entity: GetProductVariantOptionsQuery,
+        entity: ProductWithOptions['optionGroups'][0]['options'][0],
         optionsForm: UntypedFormArray,
-        currentTranslation?: TranslationOf<GetProductVariantOptionsQuery>,
+        currentTranslation?: TranslationOf<ProductWithOptions['optionGroups'][0]['options'][0]>,
     ) {
         const group = {
             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);
         }
         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;
         }
     }

Разница между файлами не показана из-за своего большого размера
+ 362 - 354
yarn.lock


Некоторые файлы не были показаны из-за большого количества измененных файлов