Release 1.2.2: recover missed PrestaShop status changes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user