Release 1.2.2: recover missed PrestaShop status changes

This commit is contained in:
fatequod
2026-10-08 10:57:21 +02:00
parent 86cf1a232f
commit d140625ba0
11 changed files with 401 additions and 19 deletions
+4
View File
@@ -11,6 +11,9 @@ const schema = new DB.Schema('ps_orders', {
// Ostatnia kumulatywna kwota total_paid_real potwierdzona w core/orders.
paymentTotalSynced: { type: 'number', optional: true },
paymentCheckedAt: { type: 'date', optional: true },
statusSyncCheckedAt: { type: 'date', optional: true },
statusSyncAttempt: { type: 'object', optional: true },
statusSyncConfirmed: { type: 'object', optional: true },
nextPaymentCheckAt: { type: 'date', optional: true },
});
@@ -21,5 +24,6 @@ DB.createIndex('ps_orders', { psOrderId: 1, shopConfigId: 1 }, { unique: true })
DB.createIndex('ps_orders', { orbitoOrderId: 1 });
DB.createIndex('ps_orders', { syncedAt: -1 });
DB.createIndex('ps_orders', { shopConfigId: 1, nextPaymentCheckAt: 1, syncedAt: 1 });
DB.createIndex('ps_orders', { statusSyncCheckedAt: 1, _id: 1 });
module.exports = schema;