@pinelab/vendure-plugin-qls-fulfillment 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -142,7 +142,7 @@ let QlsProductService = class QlsProductService {
|
|
|
142
142
|
const error = (0, catch_unknown_1.asError)(e);
|
|
143
143
|
core_1.Logger.error(`Error creating or updating variant '${variant.sku}' in QLS: ${error.message}`, constants_1.loggerCtx, error.stack);
|
|
144
144
|
failed.push(variant);
|
|
145
|
-
await this.eventBus.publish(new qls_variant_sync_failed_event_1.QlsVariantSyncFailedEvent(ctx, variant, new Date(),
|
|
145
|
+
await this.eventBus.publish(new qls_variant_sync_failed_event_1.QlsVariantSyncFailedEvent(ctx, variant, new Date(), error.message));
|
|
146
146
|
await waitToPreventRateLimit();
|
|
147
147
|
}
|
|
148
148
|
}
|
|
@@ -224,7 +224,7 @@ let QlsProductService = class QlsProductService {
|
|
|
224
224
|
// Log as warning, because this is probably a functional mistake, i.e. duplicate barcodes or EANs
|
|
225
225
|
core_1.Logger.warn(`Error syncing variant ${variantId} (${variant.sku}) to QLS: ${error.message}`, constants_1.loggerCtx);
|
|
226
226
|
failed.push({ id: variantId });
|
|
227
|
-
await this.eventBus.publish(new qls_variant_sync_failed_event_1.QlsVariantSyncFailedEvent(ctx, variant, new Date(),
|
|
227
|
+
await this.eventBus.publish(new qls_variant_sync_failed_event_1.QlsVariantSyncFailedEvent(ctx, variant, new Date(), error.message));
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
return {
|