@infrab4a/connect-angular 4.4.0-beta.6 → 4.4.0-beta.7
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.
|
@@ -1231,13 +1231,13 @@ class CheckoutService {
|
|
|
1231
1231
|
shop: checkoutData?.shop || this.defaultShop,
|
|
1232
1232
|
});
|
|
1233
1233
|
console.log('createCheckout');
|
|
1234
|
-
|
|
1235
|
-
console.log('
|
|
1236
|
-
const checkout = await this.checkoutRepository.create({
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
})
|
|
1234
|
+
const checkout = await this.checkoutRepository.create(checkout2);
|
|
1235
|
+
console.log('checkout', checkout);
|
|
1236
|
+
// const checkout = await this.checkoutRepository.create({
|
|
1237
|
+
// createdAt: new Date(),
|
|
1238
|
+
// ...Checkout.toInstance(pick(checkoutData, ['user', 'shop'])).toPlain(),
|
|
1239
|
+
// shop: checkoutData?.shop || this.defaultShop,
|
|
1240
|
+
// })
|
|
1241
1241
|
cookie.set('checkoutId', checkout.id);
|
|
1242
1242
|
return checkout;
|
|
1243
1243
|
}
|