diff --git a/lib/collections/schemas/cart.js b/lib/collections/schemas/cart.js index a78431dcdd8..798155c2566 100644 --- a/lib/collections/schemas/cart.js +++ b/lib/collections/schemas/cart.js @@ -179,8 +179,7 @@ export const Cart = new SimpleSchema({ }, billing: { type: [Payment], - optional: true, - blackbox: true + optional: true }, tax: { type: Number, diff --git a/lib/collections/schemas/payments.js b/lib/collections/schemas/payments.js index d7271fdc0ec..e7853945ae0 100644 --- a/lib/collections/schemas/payments.js +++ b/lib/collections/schemas/payments.js @@ -122,8 +122,7 @@ export const PaymentMethod = new SimpleSchema({ $setOnInsert: new Date }; } - }, - denyUpdate: true + } }, updatedAt: { type: Date, @@ -247,7 +246,8 @@ export const Payment = new SimpleSchema({ }, paymentMethod: { type: PaymentMethod, - optional: true + optional: true, + blackbox: true }, invoice: { type: Invoice, diff --git a/server/api/core/core.js b/server/api/core/core.js index c70a58bf9b4..b9724ca2525 100644 --- a/server/api/core/core.js +++ b/server/api/core/core.js @@ -22,7 +22,6 @@ const { Jobs, Packages, Shops } = Collections; export default { init() { - // run beforeCoreInit hooks Hooks.Events.run("beforeCoreInit");