Processing Shoper order 23144...
📦 Fetching order-products for order 23144 with filters: {"order_id":"23144"}
✅ Received 1 products for order 23144
✅ Fetched 1 products for order 23144
❌ Error saving order 23144 to commerce: error: null value in column "source" of relation "order_items" violates not-null constraint
    at /home/runner/workspace/node_modules/pg/lib/client.js:545:17
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async saveOrderToCommerce (/home/runner/workspace/server/postgres.ts:687:7)
    at async syncShoperOrders (/home/runner/workspace/server/routes.ts:331:24)
    at async <anonymous> (/home/runner/workspace/server/routes.ts:652:22) {
  length: 508,
  severity: 'ERROR',
  code: '23502',
  detail: 'Failing row contains (165, 63dc14f2-99bb-4814-9a7e-cb6e312e8a01, null, null, 167, 1627, 5905806217001, null, 1, null, PLN, null, null, null, 2025-10-06 18:31:36.052904, Garderoba 120x36cm SUPRA 60-VB 60-4PAN-WP60 D1N1 Czarny, 1887.00, 1887.00, PL, ONLINE, f, {"id": "27004", "tax": "23%", "code": "5905806217001", "name": "...).',
  hint: undefined,
  position: undefined,
  internalPosition: undefined,
  internalQuery: undefined,
  where: undefined,
  schema: 'commerce',
  table: 'order_items',
  column: 'source',
  dataType: undefined,
  constraint: undefined,
  file: 'execMain.c',
  line: '2021',
  routine: 'ExecConstraints'
}
❌ Failed to process Shoper order 23144: error: null value in column "source" of relation "order_items" violates not-null constraint
    at /home/runner/workspace/node_modules/pg/lib/client.js:545:17
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async saveOrderToCommerce (/home/runner/workspace/server/postgres.ts:687:7)
    at async syncShoperOrders (/home/runner/workspace/server/routes.ts:331:24)
    at async <anonymous> (/home/runner/workspace/server/routes.ts:652:22) {
  length: 508,
  severity: 'ERROR',
  code: '23502',
  detail: 'Failing row contains (165, 63dc14f2-99bb-4814-9a7e-cb6e312e8a01, null, null, 167, 1627, 5905806217001, null, 1, null, PLN, null, null, null, 2025-10-06 18:31:36.052904, Garderoba 120x36cm SUPRA 60-VB 60-4PAN-WP60 D1N1 Czarny, 1887.00, 1887.00, PL, ONLINE, f, {"id": "27004", "tax": "23%", "code": "5905806217001", "name": "...).',
  hint: undefined,
  position: undefined,
  internalPosition: undefined,
  internalQuery: undefined,
  where: undefined,
  schema: 'commerce',
  table: 'order_items',
  column: 'source',
  dataType: undefined,
  constraint: undefined,
  file: 'execMain.c',
  line: '2021',
  routine: 'ExecConstraints'
}
✅ Successfully synced Shoper orders: 0 new, 0 updated, 10 failed out of 10 total