Running initial auto-healing cycle...
🚀 [AUTO-HEAL] Starting auto-healing cycle...
📊 [AUTO-HEAL] Updating sync health stats...
📄 Pobrano 100 wpisów billing (offset: 8400, total: 8500)
✅ [AUTO-HEAL] Health stats updated - Allegro: healthy, Odoo: healthy
🔄 [AUTO-HEAL] Checking failed Odoo syncs for retry...
ℹ️  [AUTO-HEAL] No failed orders ready for retry yet
🔍 [AUTO-HEAL] Checking for missing orders in Odoo...
❌ [SYNC] Auto-detect missing orders error: there is no unique or exclusion constraint matching the ON CONFLICT specification
Stack trace: error: there is no unique or exclusion constraint matching the ON CONFLICT specification
    at /home/runner/workspace/node_modules/pg-pool/index.js:45:11
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async autoDetectMissingOrders (/home/runner/workspace/server/auto-healing.ts:156:7)
    at async runAutoHealing (/home/runner/workspace/server/auto-healing.ts:374:24)
    at async Timeout._onTimeout (/home/runner/workspace/server/routes.ts:1296:7)
Context: { component: 'auto-healing', action: 'detect-missing-orders' }
📄 Pobrano 100 wpisów billing (offset: 8500, total: 8600)
❌ [AUTO-HEAL] Error during missing orders detection: error: there is no unique or exclusion constraint matching the ON CONFLICT specification
    at /home/runner/workspace/node_modules/pg-pool/index.js:45:11
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async autoDetectMissingOrders (/home/runner/workspace/server/auto-healing.ts:156:7)
    at async runAutoHealing (/home/runner/workspace/server/auto-healing.ts:374:24)
    at async Timeout._onTimeout (/home/runner/workspace/server/routes.ts:1296:7) {
  length: 148,
  severity: 'ERROR',
  code: '42P10',
  detail: undefined,
  hint: undefined,
  position: undefined,
  internalPosition: undefined,
  internalQuery: undefined,
  where: undefined,
  schema: undefined,
  table: undefined,
  column: undefined,
  dataType: undefined,
  constraint: undefined,
  file: 'plancat.c',
  line: '915',
  routine: 'infer_arbiter_indexes'
}