Fixed merge conflics

This commit is contained in:
olivermrbl committed 2020-07-10 15:43:33 +02:00
commit e9bf18fc47
8 files changed
+121 -74

No files matched your search

@@ -1,6 +1,7 @@
import mongoose from "mongoose"
export default new mongoose.Schema({
name: { type: String, default: "" },
provider_id: { type: String, required: true },
profile_id: { type: String, required: true },
price: { type: Number, required: true },
+15
View File
@@ -968,6 +968,21 @@ class CartService extends BaseService {
update.shipping_methods = []
}
//if (cart.items.length && cart.payment_sessions.length) {
// update.payment_sessions = await Promise.all(
// region.payment_providers.map(async pId => {
// const data = await this.paymentProviderService_.createSession(pId, {
// ...cart,
// ...update,
// })
// return {
// provider_id: pId,
// data,
// }
// })
// )
//}
// Payment methods are region specific so the user needs to find a
// new payment method
if (!_.isEmpty(cart.payment_method)) {