From 346d6e666524d4e627d57b060d6d71704419bf03 Mon Sep 17 00:00:00 2001 From: Akhator Itua Date: Thu, 2 Nov 2017 15:31:54 +0100 Subject: [PATCH 1/3] fix order values stored as string --- lib/collections/schemas/cart.js | 3 +-- lib/collections/schemas/payments.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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..3242fd2d831 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, From f028e0feb770dd051ef4cb56455e64654048ba5b Mon Sep 17 00:00:00 2001 From: Brent Hoover Date: Thu, 9 Nov 2017 09:07:11 +0800 Subject: [PATCH 2/3] Fix lint error --- server/api/core/core.js | 1 - 1 file changed, 1 deletion(-) 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"); From 228a9436d8622d8f5ddbe7343f4364de5600688f Mon Sep 17 00:00:00 2001 From: Akhator Itua Date: Thu, 9 Nov 2017 19:28:13 +0100 Subject: [PATCH 3/3] fix failing tests --- lib/collections/schemas/payments.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/collections/schemas/payments.js b/lib/collections/schemas/payments.js index 3242fd2d831..e7853945ae0 100644 --- a/lib/collections/schemas/payments.js +++ b/lib/collections/schemas/payments.js @@ -246,7 +246,8 @@ export const Payment = new SimpleSchema({ }, paymentMethod: { type: PaymentMethod, - optional: true + optional: true, + blackbox: true }, invoice: { type: Invoice,