@unchainedshop/core-orders 4.8.4 → 5.0.0-alpha.1

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.
@@ -6,6 +6,9 @@ export const OrderDeliveryStatus = {
6
6
  };
7
7
  export const OrderDeliveriesCollection = async (db) => {
8
8
  const OrderDeliveries = db.collection('order_deliveries');
9
- await buildDbIndexes(OrderDeliveries, [{ index: { orderId: 1 } }]);
9
+ await buildDbIndexes(OrderDeliveries, [
10
+ { index: { orderId: 1 } },
11
+ { index: { orderId: 1, deliveryProviderId: 1 } },
12
+ ]);
10
13
  return OrderDeliveries;
11
14
  };
@@ -6,6 +6,11 @@ export const OrderPaymentStatus = {
6
6
  };
7
7
  export const OrderPaymentsCollection = async (db) => {
8
8
  const OrderPayments = db.collection('order_payments');
9
- await buildDbIndexes(OrderPayments, [{ index: { orderId: 1 } }]);
9
+ await buildDbIndexes(OrderPayments, [
10
+ { index: { orderId: 1 } },
11
+ {
12
+ index: { orderId: 1, paymentProviderId: 1 },
13
+ },
14
+ ]);
10
15
  return OrderPayments;
11
16
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unchainedshop/core-orders",
3
3
  "description": "Order management module for the Unchained Engine",
4
- "version": "4.8.4",
4
+ "version": "5.0.0-alpha.1",
5
5
  "main": "lib/orders-index.js",
6
6
  "types": "lib/orders-index.d.ts",
7
7
  "type": "module",
@@ -36,9 +36,9 @@
36
36
  "homepage": "https://github.com/unchainedshop/unchained#readme",
37
37
  "dependencies": {
38
38
  "@kontsedal/locco": "^1.1.0",
39
- "@unchainedshop/events": "^4.6.0",
40
- "@unchainedshop/logger": "^4.6.0",
41
- "@unchainedshop/utils": "^4.6.0"
39
+ "@unchainedshop/events": "^5.0.0-alpha.1",
40
+ "@unchainedshop/logger": "^5.0.0-alpha.1",
41
+ "@unchainedshop/utils": "^5.0.0-alpha.1"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "^25.0.0",