diff --git a/services/MerchOrderService.ts b/services/MerchOrderService.ts index 6122c461..a31d65e0 100644 --- a/services/MerchOrderService.ts +++ b/services/MerchOrderService.ts @@ -97,8 +97,8 @@ export default class MerchOrderService { // Verify that this order would not set the pickup event's order count // over the order limit - if (MerchOrderService.isLessThanTwoDaysBeforePickupEvent(pickupEvent)) { - throw new UserError('Cannot change order pickup to an event that starts in less than 2 days'); + if (MerchOrderService.isPickupEventOrderLimitFull(pickupEvent)) { + throw new UserError('This merch pickup event is full! Please choose a different pickup event'); } const totalCost = MerchOrderService.totalCost(originalOrder, itemOptions); diff --git a/tests/merchOrder.test.ts b/tests/merchOrder.test.ts index 5c8e2dc1..4cef331a 100644 --- a/tests/merchOrder.test.ts +++ b/tests/merchOrder.test.ts @@ -1805,8 +1805,6 @@ describe('merch order pickup events', () => { pickupEvent: pickupEvent.uuid, }; - console.log('PICKUP EVENT', pickupEvent); - await expect(merchController.placeMerchOrder(placeMerchOrderRequest, member)) .rejects .toThrow('This merch pickup event is full! Please choose a different pickup event');