@pinelab/vendure-plugin-qls-fulfillment 1.8.1 → 1.8.2
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 +4 -0
- package/dist/services/qls-product.service.js +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -222,7 +222,7 @@ let QlsProductService = class QlsProductService {
|
|
|
222
222
|
try {
|
|
223
223
|
const qlsProduct = await client.getFulfillmentProductById(result.qlsProductId);
|
|
224
224
|
if (qlsProduct) {
|
|
225
|
-
await this.options.saveAdditionalData(ctx, new core_1.Injector(this.moduleRef), qlsProduct);
|
|
225
|
+
await this.options.saveAdditionalData(ctx, new core_1.Injector(this.moduleRef), qlsProduct, variant);
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
catch (e) {
|
package/dist/types.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ export interface QlsPluginOptions {
|
|
|
59
59
|
* you to save any additional data to your own database. The saving itself
|
|
60
60
|
* happens inside this hook — if not provided, nothing is persisted.
|
|
61
61
|
*/
|
|
62
|
-
saveAdditionalData?: (ctx: RequestContext, injector: Injector, qlsProduct: FulfillmentProduct) => Promise<void> | void;
|
|
62
|
+
saveAdditionalData?: (ctx: RequestContext, injector: Injector, qlsProduct: FulfillmentProduct, variant: ProductVariant) => Promise<void> | void;
|
|
63
63
|
/**
|
|
64
64
|
* Additional order items to add to the QLS order.
|
|
65
65
|
*/
|